aboutsummaryrefslogtreecommitdiff
path: root/website/features
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-18 14:04:32 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-18 14:04:32 +0100
commitc86d0fcc37cee701d9781e255e5fc22dc9e2fa41 (patch)
tree21de64fbdd958ff4c1d0e1f8235a429c25358ed9 /website/features
parent5595943f06055279099dce1b504de224b7eaa458 (diff)
downloadlombok-c86d0fcc37cee701d9781e255e5fc22dc9e2fa41.tar.gz
lombok-c86d0fcc37cee701d9781e255e5fc22dc9e2fa41.tar.bz2
lombok-c86d0fcc37cee701d9781e255e5fc22dc9e2fa41.zip
Added link to SpoonVennersOdersky paper about equality.
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 dbe45218..b506837e 100644
--- a/website/features/EqualsAndHashCode.html
+++ b/website/features/EqualsAndHashCode.html
@@ -35,9 +35,9 @@
</p><p>
<em>NEW in Lombok 0.10: </em>Unless your class is <code>final</code> and extends <code>java.lang.Object</code>, lombok generates a <code>canEqual</code> method
which means JPA proxies can still be equal to their base class, but subclasses that add new state don't break the equals contract. The complicated reasons for
- why such a method is necessary are explained in this paper: (TODO: Find link to Venners/Spoon/Odersky). If all classes in a hierarchy are a mix of scala case classes
- and classes with lombok-generated equals methods, all equality will 'just work'. If you need to write your own equals methods, you should always override <code>canEqual</code>
- if you change <code>equals</code> and <code>hashCode</code>.
+ why such a method is necessary are explained in this paper: <a href="http://www.artima.com/lejava/articles/equality.html">How to Write an Equality Method in Java</a>.
+ If all classes in a hierarchy are a mix of scala case classes and classes with lombok-generated equals methods, all equality will 'just work'.
+ If you need to write your own equals methods, you should always override <code>canEqual</code> if you change <code>equals</code> and <code>hashCode</code>.
</p>
</div>
<div class="snippets">