aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValuePlain.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/ValuePlain.java')
-rw-r--r--test/transform/resource/after-delombok/ValuePlain.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/transform/resource/after-delombok/ValuePlain.java b/test/transform/resource/after-delombok/ValuePlain.java
index 64e5b9b9..cf2c1142 100644
--- a/test/transform/resource/after-delombok/ValuePlain.java
+++ b/test/transform/resource/after-delombok/ValuePlain.java
@@ -1,7 +1,6 @@
final class Value1 {
private final int x;
private final String name;
- @java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
public Value1(final int x, final String name) {
this.x = x;
@@ -20,7 +19,7 @@ final class Value1 {
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value1)) return false;
- final Value1 other = (Value1)o;
+ final Value1 other = (Value1) o;
if (this.getX() != other.getX()) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
@@ -34,7 +33,7 @@ final class Value1 {
int result = 1;
result = result * PRIME + this.getX();
final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 0 : $name.hashCode());
+ result = result * PRIME + ($name == null ? 43 : $name.hashCode());
return result;
}
@java.lang.Override
@@ -46,7 +45,6 @@ final class Value1 {
class Value2 {
public final int x;
private final String name;
- @java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
public Value2(final int x, final String name) {
this.x = x;
@@ -65,8 +63,8 @@ class Value2 {
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value2)) return false;
- final Value2 other = (Value2)o;
- if (!other.canEqual((java.lang.Object)this)) return false;
+ final Value2 other = (Value2) o;
+ if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getX() != other.getX()) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
@@ -84,7 +82,7 @@ class Value2 {
int result = 1;
result = result * PRIME + this.getX();
final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 0 : $name.hashCode());
+ result = result * PRIME + ($name == null ? 43 : $name.hashCode());
return result;
}
@java.lang.Override
@@ -96,7 +94,6 @@ class Value2 {
final class Value3 {
private int x;
private final int y;
- @java.beans.ConstructorProperties({"x", "y"})
@java.lang.SuppressWarnings("all")
public Value3(final int x, final int y) {
this.x = x;
@@ -115,7 +112,7 @@ final class Value3 {
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value3)) return false;
- final Value3 other = (Value3)o;
+ final Value3 other = (Value3) o;
if (this.getX() != other.getX()) return false;
if (this.getY() != other.getY()) return false;
return true;