diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2022-01-14 02:26:05 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2022-01-14 02:32:46 +0100 |
commit | 2685d37748bab76669e19a9952a3c5cbd951162a (patch) | |
tree | 3a5ab9e72b39d9cdd0b7c89d4a3a20b6238aeee8 /src/core/lombok/javac | |
parent | 267ef9736d0ec603712962a474272218c33564a9 (diff) | |
download | lombok-2685d37748bab76669e19a9952a3c5cbd951162a.tar.gz lombok-2685d37748bab76669e19a9952a3c5cbd951162a.tar.bz2 lombok-2685d37748bab76669e19a9952a3c5cbd951162a.zip |
Fix for defaulting behaviour for lombok annotations.
What's the name of one of those bugs where you look at it and go: Wow. This can never have possibly worked?
And yet it has? An inverse heisenbug: Once observed, it has always existed, but before observing it, no problems.
Anyway, fixed. For what it's worth.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/HandlerLibrary.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java index c2bf8512..d401f59d 100644 --- a/src/core/lombok/javac/HandlerLibrary.java +++ b/src/core/lombok/javac/HandlerLibrary.java @@ -104,13 +104,13 @@ public class HandlerLibrary { this.handler = handler; this.annotationClass = annotationClass; HandlerPriority hp = handler.getClass().getAnnotation(HandlerPriority.class); - this.priority = hp == null ? 0L : (((long)hp.value()) << 32) + hp.subValue(); + this.priority = hp == null ? 0L : (((long) hp.value()) << 32) + hp.subValue(); this.resolutionResetNeeded = handler.getClass().isAnnotationPresent(ResolutionResetNeeded.class); this.evenIfAlreadyHandled = handler.getClass().isAnnotationPresent(AlreadyHandledAnnotations.class); } public void handle(final JavacNode node) { - handler.handle(JavacHandlerUtil.createAnnotation(annotationClass, node), (JCAnnotation)node.get(), node); + handler.handle(JavacHandlerUtil.createAnnotation(annotationClass, node), (JCAnnotation) node.get(), node); } public long getPriority() { |