aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/BuilderDefaultsWarnings.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/BuilderDefaultsWarnings.java')
-rw-r--r--test/transform/resource/before/BuilderDefaultsWarnings.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderDefaultsWarnings.java b/test/transform/resource/before/BuilderDefaultsWarnings.java
new file mode 100644
index 00000000..8ef3dc59
--- /dev/null
+++ b/test/transform/resource/before/BuilderDefaultsWarnings.java
@@ -0,0 +1,18 @@
+import lombok.Builder;
+import lombok.Singular;
+
+@Builder
+public class BuilderDefaultsWarnings {
+ long x = System.currentTimeMillis();
+ final int y = 5;
+ @Builder.Default int z;
+ @Builder.Default @Singular java.util.List<String> items;
+}
+
+class NoBuilderButHasDefaults {
+ @Builder.Default private final long z = 5;
+
+ @Builder
+ public NoBuilderButHasDefaults() {
+ }
+}