aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/ValueExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/ValueExample_post.jpage')
-rw-r--r--usage_examples/ValueExample_post.jpage6
1 files changed, 3 insertions, 3 deletions
diff --git a/usage_examples/ValueExample_post.jpage b/usage_examples/ValueExample_post.jpage
index 4ac8654e..8a5d4836 100644
--- a/usage_examples/ValueExample_post.jpage
+++ b/usage_examples/ValueExample_post.jpage
@@ -49,7 +49,7 @@ public final class ValueExample {
final int PRIME = 59;
int result = 1;
final Object $name = this.getName();
- result = result * PRIME + ($name == null ? 0 : $name.hashCode());
+ result = result * PRIME + ($name == null ? 43 : $name.hashCode());
result = result * PRIME + this.getAge();
final long $score = Double.doubleToLongBits(this.getScore());
result = result * PRIME + (int)($score >>> 32 ^ $score);
@@ -106,9 +106,9 @@ public final class ValueExample {
final int PRIME = 59;
int result = 1;
final Object $name = this.getName();
- result = result * PRIME + ($name == null ? 0 : $name.hashCode());
+ result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final Object $value = this.getValue();
- result = result * PRIME + ($value == null ? 0 : $value.hashCode());
+ result = result * PRIME + ($value == null ? 43 : $value.hashCode());
return result;
}