From 2685d37748bab76669e19a9952a3c5cbd951162a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 14 Jan 2022 02:26:05 +0100 Subject: 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. --- src/core/lombok/javac/HandlerLibrary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/lombok/javac') 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() { -- cgit