aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-02-11 22:35:42 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-02-11 22:35:42 +0100
commit1488a262bd389d0fef444bb3fd80821a2d66e6c2 (patch)
tree37f9e8b620df125cce5bbe13ca32b94953f8b72a /src/delombok/lombok
parentaafd83079a3000d3deb6e40a182849da2509fbfb (diff)
downloadlombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.tar.gz
lombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.tar.bz2
lombok-1488a262bd389d0fef444bb3fd80821a2d66e6c2.zip
Bugfix for delombok mangling x++ into ++x on java7.
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r--src/delombok/lombok/delombok/PrettyCommentsPrinter.java2
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 {