aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/EqualsAndHashCodeExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/EqualsAndHashCodeExample_post.jpage')
-rw-r--r--usage_examples/EqualsAndHashCodeExample_post.jpage4
1 files changed, 2 insertions, 2 deletions
diff --git a/usage_examples/EqualsAndHashCodeExample_post.jpage b/usage_examples/EqualsAndHashCodeExample_post.jpage
index 4a90e7dc..57191f55 100644
--- a/usage_examples/EqualsAndHashCodeExample_post.jpage
+++ b/usage_examples/EqualsAndHashCodeExample_post.jpage
@@ -24,7 +24,7 @@ public class EqualsAndHashCodeExample {
}
@Override public int hashCode() {
- final int PRIME = 31;
+ final int PRIME = 277;
int result = 1;
final long temp1 = Double.doubleToLongBits(this.score);
result = (result*PRIME) + (this.name == null ? 0 : this.name.hashCode());
@@ -57,7 +57,7 @@ public class EqualsAndHashCodeExample {
}
@Override public int hashCode() {
- final int PRIME = 31;
+ final int PRIME = 277;
int result = 1;
result = (result*PRIME) + super.hashCode();
result = (result*PRIME) + this.width;