mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 06:16:14 +00:00
Issue 625: use (even) better primes for hashcodes
This commit is contained in:
1 parent
2ab6cc809d
commit
14cc545276
34 files changed
+82
-65
No files matched your search
@@ -21,9 +21,9 @@ class GetterLazyBoolean {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
final int PRIME = 277;
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
result = result * PRIME + (this.isBooleanValue() ? 2609 : 2591);
|
||||
result = result * PRIME + (this.isBooleanValue() ? 79 : 97);
|
||||
return result;
|
||||
}
|
||||
@java.lang.Override
|
||||
|
||||
Reference in new issue
Block a user