mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
Do not lose generic arguments when adding annotations #2689
This commit is contained in:
1 parent
67d66be9ec
commit
01cc651540
4 files changed
+425
No files matched your search
@@ -0,0 +1,19 @@
|
||||
//CONF: lombok.addNullAnnotations = checkerframework
|
||||
import java.util.List;
|
||||
import lombok.Singular;
|
||||
|
||||
class NullAnnotatedCheckerFrameworkSuperBuilder {
|
||||
@lombok.experimental.SuperBuilder
|
||||
public static class Parent {
|
||||
@lombok.Builder.Default int x = 5;
|
||||
int y;
|
||||
int z;
|
||||
@Singular List<String> names;
|
||||
}
|
||||
|
||||
@lombok.experimental.SuperBuilder
|
||||
public static class ZChild extends Parent {
|
||||
@lombok.Builder.Default int a = 1;
|
||||
int b;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user