diff options
author | md_5 <git@md-5.net> | 2021-03-20 13:17:15 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2021-03-20 13:18:50 +1100 |
commit | 70951d4dd7eb82500bb8de98749ae136d9a38d78 (patch) | |
tree | 4f7cbdc1a688628b60eee67e3274915571fdf157 /src/core/lombok/javac/handlers/HandleBuilderRemove.java | |
parent | c6076730de3b7b587ca0e1d6e31f5e7bd6ab6761 (diff) | |
download | lombok-70951d4dd7eb82500bb8de98749ae136d9a38d78.tar.gz lombok-70951d4dd7eb82500bb8de98749ae136d9a38d78.tar.bz2 lombok-70951d4dd7eb82500bb8de98749ae136d9a38d78.zip |
[fixes #2724] Increase priority of Builder annotation removal
Otherwise they may run after `HandleDelegate`. This is problematic as
`HandleDelegate` parses the compulation unit and `@Builder` may contain imports
(eg `AccessLevel`) that were already removed by other processors, eg `@Getter`.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleBuilderRemove.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleBuilderRemove.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilderRemove.java b/src/core/lombok/javac/handlers/HandleBuilderRemove.java index 7cfcf273..a47ed6b0 100644 --- a/src/core/lombok/javac/handlers/HandleBuilderRemove.java +++ b/src/core/lombok/javac/handlers/HandleBuilderRemove.java @@ -34,7 +34,7 @@ import lombok.javac.JavacNode; import lombok.spi.Provides; @Provides -@HandlerPriority(65536) +@HandlerPriority(32768) @AlreadyHandledAnnotations public class HandleBuilderRemove extends JavacAnnotationHandler<Builder> { @Override public void handle(AnnotationValues<Builder> annotation, JCAnnotation ast, JavacNode annotationNode) { |