diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-04-29 23:32:25 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-04-29 23:57:48 +0200 |
commit | 25def866b50860715ee7c315c678b8c3d1ba9b56 (patch) | |
tree | bf4da5086f9517237c3cf988e03d4405a916b69a /test/transform/resource/after-ecj/DataPlain.java | |
parent | 5a13db5dc967367b9e3ec85bb5f07e65a1df09b7 (diff) | |
download | lombok-25def866b50860715ee7c315c678b8c3d1ba9b56.tar.gz lombok-25def866b50860715ee7c315c678b8c3d1ba9b56.tar.bz2 lombok-25def866b50860715ee7c315c678b8c3d1ba9b56.zip |
Issue 366: don't call the getter twice, fixed for Eclipse.
Diffstat (limited to 'test/transform/resource/after-ecj/DataPlain.java')
-rw-r--r-- | test/transform/resource/after-ecj/DataPlain.java | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test/transform/resource/after-ecj/DataPlain.java b/test/transform/resource/after-ecj/DataPlain.java index 6322d347..0828bc44 100644 --- a/test/transform/resource/after-ecj/DataPlain.java +++ b/test/transform/resource/after-ecj/DataPlain.java @@ -25,7 +25,9 @@ import lombok.Data; return false; if ((this.getX() != other.getX())) return false; - if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals((java.lang.Object) other.getName())))) + final java.lang.Object this$name = this.getName(); + final java.lang.Object other$name = other.getName(); + if (((this$name == null) ? (other$name != null) : (! this$name.equals(other$name)))) return false; return true; } @@ -36,7 +38,8 @@ import lombok.Data; final int PRIME = 31; int result = 1; result = ((result * PRIME) + this.getX()); - result = ((result * PRIME) + ((this.getName() == null) ? 0 : this.getName().hashCode())); + final java.lang.Object $name = this.getName(); + result = ((result * PRIME) + (($name == null) ? 0 : $name.hashCode())); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { @@ -69,7 +72,9 @@ import lombok.Data; return false; if ((this.getX() != other.getX())) return false; - if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals((java.lang.Object) other.getName())))) + final java.lang.Object this$name = this.getName(); + final java.lang.Object other$name = other.getName(); + if (((this$name == null) ? (other$name != null) : (! this$name.equals(other$name)))) return false; return true; } @@ -80,7 +85,8 @@ import lombok.Data; final int PRIME = 31; int result = 1; result = ((result * PRIME) + this.getX()); - result = ((result * PRIME) + ((this.getName() == null) ? 0 : this.getName().hashCode())); + final java.lang.Object $name = this.getName(); + result = ((result * PRIME) + (($name == null) ? 0 : $name.hashCode())); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { @@ -111,7 +117,9 @@ final @Data class Data3 { final @java.lang.SuppressWarnings("all") Data3 other = (Data3) o; if ((this.getX() != other.getX())) return false; - if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals((java.lang.Object) other.getName())))) + final java.lang.Object this$name = this.getName(); + final java.lang.Object other$name = other.getName(); + if (((this$name == null) ? (other$name != null) : (! this$name.equals(other$name)))) return false; return true; } @@ -119,7 +127,8 @@ final @Data class Data3 { final int PRIME = 31; int result = 1; result = ((result * PRIME) + this.getX()); - result = ((result * PRIME) + ((this.getName() == null) ? 0 : this.getName().hashCode())); + final java.lang.Object $name = this.getName(); + result = ((result * PRIME) + (($name == null) ? 0 : $name.hashCode())); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { |