diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-02-11 22:35:42 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-02-11 22:35:42 +0100 |
commit | 1488a262bd389d0fef444bb3fd80821a2d66e6c2 (patch) | |
tree | 37f9e8b620df125cce5bbe13ca32b94953f8b72a | |
parent | aafd83079a3000d3deb6e40a182849da2509fbfb (diff) | |
download | lombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.tar.gz lombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.tar.bz2 lombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.zip |
Bugfix for delombok mangling x++ into ++x on java7.
-rw-r--r-- | src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index 8569db5b..6e9a1c94 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -1245,7 +1245,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { int ownprec = TreeInfo.opPrec(getTag(tree)); String opname = operatorName(getTag(tree)); open(prec, ownprec); - if (getTag(tree) <= JCTree.PREDEC) { + if (getTag(tree) <= Javac.getCtcInt(JCTree.class, "PREDEC")) { print(opname); printExpr(tree.arg, ownprec); } else { |