Issue 366: don't call the getter twice, fixed for Eclipse.

This commit is contained in:
Roel Spilker committed 2012-04-29 23:57:48 +02:00
1 parent 5a13db5dc9
commit 25def866b5
9 files changed
+160 -94

No files matched your search

@@ -29,9 +29,13 @@
final @java.lang.SuppressWarnings("all") GetterLazyEahcToString other = (GetterLazyEahcToString) o;
if ((! other.canEqual((java.lang.Object) this)))
return false;
if (((this.getValue() == null) ? (other.getValue() != null) : (! this.getValue().equals((java.lang.Object) other.getValue()))))
final java.lang.Object this$value = this.getValue();
final java.lang.Object other$value = other.getValue();
if (((this$value == null) ? (other$value != null) : (! this$value.equals(other$value))))
return false;
if (((this.value2 == null) ? (other.value2 != null) : (! this.value2.equals((java.lang.Object) other.value2))))
final java.lang.Object this$value2 = this.value2;
final java.lang.Object other$value2 = other.value2;
if (((this$value2 == null) ? (other$value2 != null) : (! this$value2.equals(other$value2))))
return false;
return true;
}
@@ -41,8 +45,10 @@
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
final int PRIME = 31;
int result = 1;
result = ((result * PRIME) + ((this.getValue() == null) ? 0 : this.getValue().hashCode()));
result = ((result * PRIME) + ((this.value2 == null) ? 0 : this.value2.hashCode()));
final java.lang.Object $value = this.getValue();
result = ((result * PRIME) + (($value == null) ? 0 : $value.hashCode()));
final java.lang.Object $value2 = this.value2;
result = ((result * PRIME) + (($value2 == null) ? 0 : $value2.hashCode()));
return result;
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {