aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/Accessors.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-06-25 00:13:12 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-06-25 00:13:12 +0200
commit251fd03cd78ef6996d4252450bda596a5e8b11b9 (patch)
tree6cd9f4a8510ffabed01cd5eae60c0e1b6f2d2b35 /test/transform/resource/after-delombok/Accessors.java
parent23dcc9f5a5f3c24ccfb2f98ab556daed0dee3c89 (diff)
downloadlombok-251fd03cd78ef6996d4252450bda596a5e8b11b9.tar.gz
lombok-251fd03cd78ef6996d4252450bda596a5e8b11b9.tar.bz2
lombok-251fd03cd78ef6996d4252450bda596a5e8b11b9.zip
The hashCode() method now generates a magic prime instead of 0 for the hash of null values; this reduces collisions.
Diffstat (limited to 'test/transform/resource/after-delombok/Accessors.java')
-rw-r--r--test/transform/resource/after-delombok/Accessors.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/Accessors.java b/test/transform/resource/after-delombok/Accessors.java
index 3346bacb..3f4698e0 100644
--- a/test/transform/resource/after-delombok/Accessors.java
+++ b/test/transform/resource/after-delombok/Accessors.java
@@ -100,7 +100,7 @@ class AccessorsPrefix3 {
final int PRIME = 59;
int result = 1;
final java.lang.Object $fName = this.getName();
- result = result * PRIME + ($fName == null ? 0 : $fName.hashCode());
+ result = result * PRIME + ($fName == null ? 43 : $fName.hashCode());
return result;
}
}