aboutsummaryrefslogtreecommitdiff
path: root/src/delombok
diff options
context:
space:
mode:
authorRobbert Jan Grootjans <grootjans@gmail.com>2013-04-05 14:37:11 +0200
committerRobbert Jan Grootjans <grootjans@gmail.com>2013-04-05 14:37:11 +0200
commit172202add2d0cb63e5b0780e7e3fc6000e43a3d9 (patch)
tree7c1cfdfa473207980f7c863734beb370bd088feb /src/delombok
parent2658b1ba42001e62e8ffd57702ba915602c04224 (diff)
downloadlombok-172202add2d0cb63e5b0780e7e3fc6000e43a3d9.tar.gz
lombok-172202add2d0cb63e5b0780e7e3fc6000e43a3d9.tar.bz2
lombok-172202add2d0cb63e5b0780e7e3fc6000e43a3d9.zip
Some small fixes for Java 7
Diffstat (limited to 'src/delombok')
-rw-r--r--src/delombok/lombok/delombok/PrettyCommentsPrinter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
index d0f38a62..745aea79 100644
--- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
+++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
@@ -1281,9 +1281,9 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
private int isOwnPrec(JCExpression tree) {
try {
if (JavaCompiler.version().startsWith("1.8")) {
- return (Integer)TreeInfo.class.getMethod("opPrec", Class.forName("com.sun.tools.javac.code.TypeTag")).invoke(tree, getTag(tree));
+ return (Integer)TreeInfo.class.getMethod("opPrec", Class.forName("com.sun.tools.javac.code.TypeTag")).invoke(null, getTag(tree));
} else {
- return (Integer)TreeInfo.class.getMethod("opPrec", Integer.TYPE).invoke(tree, getTag(tree));
+ return (Integer)TreeInfo.class.getMethod("opPrec", Integer.TYPE).invoke(null, getTag(tree));
}
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);