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 /website/features | |
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 'website/features')
-rw-r--r-- | website/features/Builder.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/website/features/Builder.html b/website/features/Builder.html index 20518226..d7453c5b 100644 --- a/website/features/Builder.html +++ b/website/features/Builder.html @@ -83,7 +83,8 @@ <div class="overview"> <h3><a id="builderdefault" name="builderdefault">@Builder.Default</a></h3> <p> - To specify a default value, which will be used if, during the build process this value is never set, initialize the field and add the <code>@Builder.Default</code> annotation:<br /> + If a certain field/parameter is never set during a build session, then it always gets 0 / <code>null</code> / false. If you've put <code>@Builder</code> on a class + (and not a method or constructor) you can instead specify the default directly on the field, and annotate the field with <code>@Builder.Default</code>:<br /> <code>@Builder.Default private final long created = System.currentTimeMillis();</code> </p> </div> |