aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-08 01:06:35 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-08 01:06:35 +0100
commit9ad2bd563b001c0742d767fea9ddaaeb60400ec7 (patch)
tree82d9653d555b46b1a42f7c8086e87bd6aefd16a8 /website
parent0b0656ae3c38ae915c86e17c2744d5e3d8fc805c (diff)
downloadlombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.tar.gz
lombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.tar.bz2
lombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.zip
[fixes #788] lombok generated equals method plus a non-null-by-default annotation no longer clash.
Diffstat (limited to 'website')
-rw-r--r--website/templates/features/EqualsAndHashCode.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/templates/features/EqualsAndHashCode.html b/website/templates/features/EqualsAndHashCode.html
index 5a7b8166..5b54e027 100644
--- a/website/templates/features/EqualsAndHashCode.html
+++ b/website/templates/features/EqualsAndHashCode.html
@@ -53,6 +53,8 @@
</p><p>
If a getter exists for a field to be included, it is called instead of using a direct field reference. This behaviour can be suppressed:<br />
<code>@EqualsAndHashCode(doNotUseGetters = true)</code>
+ </p><p>
+ If the class (or an enclosing class) has either the <code>@org.eclipse.jdt.annotation.NonNullByDefault</code> or the <code>@javax.annotation.ParametersAreNonnullByDefault</code> annotation, the parameter of the generated <code>equals</code> method will have the appropriate <code>@Nullable</code> annotation; JDK8+ is required when you do this. <span class="since">(since 1.18.12)</span>.
</p>
</@f.smallPrint>
</@f.scaffold>