From 3b1792c39701fad8a8abc8d0d508b90ab2832e05 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 22 Mar 2017 23:32:28 +0100 Subject: Added tests to check warnings/errors emitted by Builder.Default support. --- website/features/Builder.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'website/features') 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 @@

@Builder.Default

- 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 @Builder.Default annotation:
+ If a certain field/parameter is never set during a build session, then it always gets 0 / null / false. If you've put @Builder on a class + (and not a method or constructor) you can instead specify the default directly on the field, and annotate the field with @Builder.Default:
@Builder.Default private final long created = System.currentTimeMillis();

-- cgit