mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 08:17:18 +00:00
Issue 366: don't call the getter twice, fixed for javac.
This commit is contained in:
1 parent
d8e933223f
commit
5a13db5dc9
10 files changed
+170
-93
No files matched your search
@@ -24,7 +24,9 @@ class DataWithGetter {
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
if (this.getY() != other.getY()) return false;
|
||||
if (this.getZ() == null ? other.getZ() != null : !this.getZ().equals((java.lang.Object)other.getZ())) return false;
|
||||
final java.lang.Object this$z = this.getZ();
|
||||
final java.lang.Object other$z = other.getZ();
|
||||
if (this$z == null ? other$z != null : !this$z.equals(other$z)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -38,7 +40,8 @@ class DataWithGetter {
|
||||
int result = 1;
|
||||
result = result * PRIME + this.getX();
|
||||
result = result * PRIME + this.getY();
|
||||
result = result * PRIME + (this.getZ() == null ? 0 : this.getZ().hashCode());
|
||||
final java.lang.Object $z = this.getZ();
|
||||
result = result * PRIME + ($z == null ? 0 : $z.hashCode());
|
||||
return result;
|
||||
}
|
||||
@java.lang.Override
|
||||
|
||||
Reference in new issue
Block a user