aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/DataOnLocalClass.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-04-29 22:24:59 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-04-29 23:57:47 +0200
commit5a13db5dc967367b9e3ec85bb5f07e65a1df09b7 (patch)
tree3efc9cd7bd106745d158054b103d20d6478114ab /test/transform/resource/after-delombok/DataOnLocalClass.java
parentd8e933223fb162175f550bee69b5a0153e11ff66 (diff)
downloadlombok-5a13db5dc967367b9e3ec85bb5f07e65a1df09b7.tar.gz
lombok-5a13db5dc967367b9e3ec85bb5f07e65a1df09b7.tar.bz2
lombok-5a13db5dc967367b9e3ec85bb5f07e65a1df09b7.zip
Issue 366: don't call the getter twice, fixed for javac.
Diffstat (limited to 'test/transform/resource/after-delombok/DataOnLocalClass.java')
-rw-r--r--test/transform/resource/after-delombok/DataOnLocalClass.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/DataOnLocalClass.java b/test/transform/resource/after-delombok/DataOnLocalClass.java
index af5c12a5..ed4d30ca 100644
--- a/test/transform/resource/after-delombok/DataOnLocalClass.java
+++ b/test/transform/resource/after-delombok/DataOnLocalClass.java
@@ -27,7 +27,9 @@ class DataOnLocalClass1 {
final Local other = (Local)o;
if (!other.canEqual((java.lang.Object)this)) return false;
if (this.getX() != other.getX()) return false;
- if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false;
+ 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;
}
@java.lang.SuppressWarnings("all")
@@ -40,7 +42,8 @@ class DataOnLocalClass1 {
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;
}
@java.lang.Override
@@ -80,7 +83,9 @@ class DataOnLocalClass2 {
if (!(o instanceof Local.InnerLocal)) return false;
final InnerLocal other = (InnerLocal)o;
if (!other.canEqual((java.lang.Object)this)) return false;
- if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false;
+ 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;
}
@java.lang.SuppressWarnings("all")
@@ -92,7 +97,8 @@ class DataOnLocalClass2 {
public int hashCode() {
final int PRIME = 31;
int result = 1;
- 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;
}
@java.lang.Override