diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-22 23:32:28 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-22 23:32:28 +0100 |
commit | 3b1792c39701fad8a8abc8d0d508b90ab2832e05 (patch) | |
tree | 0ad9e05d2fbc8f8603b3f86e445ec66d1386b9fb /test/transform/resource/before/BuilderDefaultsWarnings.java | |
parent | 11fdfb56f735dde042aebd9be6e4b488edfa0d84 (diff) | |
download | lombok-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.java | 10 |
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() { + } } |