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 | |
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')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilderDefaultRemove.java b/src/core/lombok/javac/handlers/HandleBuilderDefaultRemove.java index 510784d6..d7bc28cb 100644 --- a/src/core/lombok/javac/handlers/HandleBuilderDefaultRemove.java +++ b/src/core/lombok/javac/handlers/HandleBuilderDefaultRemove.java @@ -35,7 +35,7 @@ import lombok.javac.JavacNode; import lombok.spi.Provides; @Provides -@HandlerPriority(65536) +@HandlerPriority(32768) @AlreadyHandledAnnotations public class HandleBuilderDefaultRemove extends JavacAnnotationHandler<Builder.Default> { @Override public void handle(AnnotationValues<Default> annotation, JCAnnotation ast, JavacNode annotationNode) { 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) { diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilderRemove.java b/src/core/lombok/javac/handlers/HandleSuperBuilderRemove.java index fed75876..d3db5ef4 100644 --- a/src/core/lombok/javac/handlers/HandleSuperBuilderRemove.java +++ b/src/core/lombok/javac/handlers/HandleSuperBuilderRemove.java @@ -34,7 +34,7 @@ import lombok.javac.JavacNode; import lombok.spi.Provides; @Provides -@HandlerPriority(65536) +@HandlerPriority(32768) @AlreadyHandledAnnotations public class HandleSuperBuilderRemove extends JavacAnnotationHandler<SuperBuilder> { @Override public void handle(AnnotationValues<SuperBuilder> annotation, JCAnnotation ast, JavacNode annotationNode) { |