From 01cc651540120947ae1081cea6434704e508574e Mon Sep 17 00:00:00 2001 From: Mattias Grönlund Date: Fri, 1 Jan 2021 12:13:20 +0100 Subject: Do not lose generic arguments when adding annotations #2689 --- .../NullAnnotatedCheckerFrameworkSuperBuilder.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java (limited to 'test/transform/resource/before') 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 names; + } + + @lombok.experimental.SuperBuilder + public static class ZChild extends Parent { + @lombok.Builder.Default int a = 1; + int b; + } +} -- cgit