aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/BuilderDefaultsWarnings.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-03-22 23:32:28 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-03-22 23:32:28 +0100
commit3b1792c39701fad8a8abc8d0d508b90ab2832e05 (patch)
tree0ad9e05d2fbc8f8603b3f86e445ec66d1386b9fb /test/transform/resource/before/BuilderDefaultsWarnings.java
parent11fdfb56f735dde042aebd9be6e4b488edfa0d84 (diff)
downloadlombok-3b1792c39701fad8a8abc8d0d508b90ab2832e05.tar.gz
lombok-3b1792c39701fad8a8abc8d0d508b90ab2832e05.tar.bz2
lombok-3b1792c39701fad8a8abc8d0d508b90ab2832e05.zip
Added tests to check warnings/errors emitted by Builder.Default support.
Diffstat (limited to 'test/transform/resource/before/BuilderDefaultsWarnings.java')
-rw-r--r--test/transform/resource/before/BuilderDefaultsWarnings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderDefaultsWarnings.java b/test/transform/resource/before/BuilderDefaultsWarnings.java
index a93f0f17..8ef3dc59 100644
--- a/test/transform/resource/before/BuilderDefaultsWarnings.java
+++ b/test/transform/resource/before/BuilderDefaultsWarnings.java
@@ -1,8 +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() {
+ }
}