aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features/Value.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-09-18 01:40:32 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-09-18 01:40:32 +0200
commitaee4e76d864e01b5d453409e703ad54852fa57bb (patch)
tree98e00ec3d53c03a492d0c8b3d3af678167cbbddc /website/templates/features/Value.html
parent9198551defb7dd71d872c7b86af0a3f0bf0ec545 (diff)
downloadlombok-aee4e76d864e01b5d453409e703ad54852fa57bb.tar.gz
lombok-aee4e76d864e01b5d453409e703ad54852fa57bb.tar.bz2
lombok-aee4e76d864e01b5d453409e703ad54852fa57bb.zip
updated docs to reflect change to copyable annotations
Diffstat (limited to 'website/templates/features/Value.html')
-rw-r--r--website/templates/features/Value.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/templates/features/Value.html b/website/templates/features/Value.html
index fdad0e12..5fe188b3 100644
--- a/website/templates/features/Value.html
+++ b/website/templates/features/Value.html
@@ -42,6 +42,8 @@
</p><p>
For classes with generics, it's useful to have a static method which serves as a constructor, because inference of generic parameters via static methods works in java6 and avoids having to use the diamond operator. While you can force this by applying an explicit <code>@AllArgsConstructor(staticConstructor="of")</code> annotation, there's also the <code>@Value(staticConstructor="of")</code> feature, which will make the generated all-arguments constructor private, and generates a public static method named <code>of</code> which is a wrapper around this private constructor.
</p><p>
+ Various well known annotations about nullity cause null checks to be inserted and will be copied to the relevant places (such as the method for getters, and the parameter for the constructor and setters). See <a href="/features/GetterSetter">Getter/Setter</a> documentation's small print for more information.
+ </p><p>
<code>@Value</code> was an experimental feature from v0.11.4 to v0.11.9 (as <code>@lombok.experimental.Value</code>). It has since been moved into the core package. The old annotation is still around (and is an alias). It will eventually be removed in a future version, though.
</p><p>
It is not possible to use <code>@FieldDefaults</code> to 'undo' the private-by-default and final-by-default aspect of fields in the annotated class. Use <code>@NonFinal</code> and <code>@PackagePrivate</code> on the fields in the class to override this behaviour.