mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 16:16:02 +00:00
[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`.
This commit is contained in:
1 parent
c6076730de
commit
70951d4dd7
11 files changed
+99
-10
No files matched your search
@@ -1,6 +1,4 @@
|
||||
//skip-idempotent
|
||||
import lombok.Builder;
|
||||
@Builder
|
||||
public class BuilderDefaultsWarnings {
|
||||
long x = System.currentTimeMillis();
|
||||
final int y = 5;
|
||||
@@ -87,7 +85,6 @@ public class BuilderDefaultsWarnings {
|
||||
}
|
||||
class NoBuilderButHasDefaults {
|
||||
private final long z = 5;
|
||||
@Builder
|
||||
public NoBuilderButHasDefaults() {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
Reference in new issue
Block a user