aboutsummaryrefslogtreecommitdiff
path: root/website/features/Builder.html
diff options
context:
space:
mode:
Diffstat (limited to 'website/features/Builder.html')
-rw-r--r--website/features/Builder.html3
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>