aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/JavacAST.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/javac/JavacAST.java')
-rw-r--r--src/lombok/javac/JavacAST.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lombok/javac/JavacAST.java b/src/lombok/javac/JavacAST.java
index 37673ab5..99727553 100644
--- a/src/lombok/javac/JavacAST.java
+++ b/src/lombok/javac/JavacAST.java
@@ -372,8 +372,7 @@ public class JavacAST extends AST<JCTree> {
f.setAccessible(true);
if ( f.getType() == int.class ) {
int val = ((Number)f.get(messager)).intValue();
- val++;
- f.set(messager, val);
+ f.set(messager, val +1);
}
} catch ( Throwable t ) {
//Very unfortunate, but in most cases it still works fine, so we'll silently swallow it.