aboutsummaryrefslogtreecommitdiff
path: root/website/features
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2011-07-18 20:59:52 +0200
committerRoel Spilker <r.spilker@gmail.com>2011-07-18 21:05:00 +0200
commit83e2fb5e00e1868f0b4f0fe38b1ea1383119f8ee (patch)
tree68f44e863293287e989b120a1d15de88de338a2a /website/features
parentaa1a0e7ac87f5e96a39d0bad670aa8c7b7df85d4 (diff)
downloadlombok-83e2fb5e00e1868f0b4f0fe38b1ea1383119f8ee.tar.gz
lombok-83e2fb5e00e1868f0b4f0fe38b1ea1383119f8ee.tar.bz2
lombok-83e2fb5e00e1868f0b4f0fe38b1ea1383119f8ee.zip
Now either all or none of equals/hashCode/canEqual is generated. Fixes issue 240.
Diffstat (limited to 'website/features')
-rw-r--r--website/features/EqualsAndHashCode.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/features/EqualsAndHashCode.html b/website/features/EqualsAndHashCode.html
index e79760df..b683c2b3 100644
--- a/website/features/EqualsAndHashCode.html
+++ b/website/features/EqualsAndHashCode.html
@@ -65,9 +65,9 @@
return false. This is analogous to <code>java.lang.Double</code>'s equals method, and is in fact required to ensure that comparing an object
to an exact copy of itself returns <code>true</code> for equality.
</p><p>
- If there is <em>any</em> method named either <code>hashCode</code> or <code>equals</code>, regardless of parameters or return type,
- that method will not be generated, and a warning is emitted instead. <code>hashCode</code> and <code>equals</code> need to be in sync with
- each other, which lombok cannot guarantee if it is only generating one of the two methods, hence you always get a warning if one <em>or</em> both
+ If there is <em>any</em> method named either <code>hashCode</code>, <code>equals</code> or <code>canEqual</code>, regardless of
+ parameters or return type, no methods will be generated, and a warning is emitted instead. These 3 methods need to be in sync with
+ each other, which lombok cannot guarantee unless it generates all the methods, hence you always get a warning if one <em>or</em> more
of the methods already exist.
</p><p>
Attempting to exclude fields that don't exist or would have been excluded anyway (because they are static or transient) results in warnings on the named fields.