diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2021-01-01 15:29:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 15:29:24 +0100 |
commit | 6f218d5ba896820bfc11143fefacccca8f8042d6 (patch) | |
tree | af8a24c2f6a5250b65f6a13bc145b4f4e0d2ffac /test/transform/resource/before | |
parent | 67d66be9eccf050a5f3758273ea2d685217f6d5a (diff) | |
parent | 01cc651540120947ae1081cea6434704e508574e (diff) | |
download | lombok-6f218d5ba896820bfc11143fefacccca8f8042d6.tar.gz lombok-6f218d5ba896820bfc11143fefacccca8f8042d6.tar.bz2 lombok-6f218d5ba896820bfc11143fefacccca8f8042d6.zip |
Merge pull request #2690 from mattiasgronlund/master
Do not lose generic arguments when adding annotations
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java b/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java new file mode 100644 index 00000000..39bb0fcc --- /dev/null +++ b/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java @@ -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; + } +} |