aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/HandlerLibrary.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-06-06 02:56:05 +0200
committerRoel Spilker <r.spilker@gmail.com>2014-06-06 02:56:05 +0200
commit33ead46639087a4e772d6535d0354f39fadc5724 (patch)
tree1a7806ed96d22727e7eda70fcd4231df55668f5e /src/core/lombok/javac/HandlerLibrary.java
parent288a2236c0d5c4c129d837330ca16bfef8e5b2e2 (diff)
parent68c5b016f9a2663abc9cd4aeb0cc0034949469ca (diff)
downloadlombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.gz
lombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.bz2
lombok-33ead46639087a4e772d6535d0354f39fadc5724.zip
Merge branch 'master' into configResolutionInEclipse
Diffstat (limited to 'src/core/lombok/javac/HandlerLibrary.java')
-rw-r--r--src/core/lombok/javac/HandlerLibrary.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java
index 7d40204b..30aeff73 100644
--- a/src/core/lombok/javac/HandlerLibrary.java
+++ b/src/core/lombok/javac/HandlerLibrary.java
@@ -21,6 +21,8 @@
*/
package lombok.javac;
+import static lombok.javac.JavacAugments.JCTree_handled;
+
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
@@ -35,7 +37,6 @@ import javax.annotation.processing.Messager;
import javax.tools.Diagnostic;
import lombok.core.AnnotationValues.AnnotationValueDecodeFail;
-import lombok.core.BooleanFieldAugment;
import lombok.core.HandlerPriority;
import lombok.core.SpiLoadUtil;
import lombok.core.TypeLibrary;
@@ -206,10 +207,8 @@ public class HandlerLibrary {
if (t != null) t.printStackTrace();
}
- private static final BooleanFieldAugment<JCTree> handled = BooleanFieldAugment.augment(JCTree.class, "lombok$handled");
-
private boolean checkAndSetHandled(JCTree node) {
- return !handled.set(node);
+ return !JCTree_handled.getAndSet(node, true);
}
/**