diff options
Diffstat (limited to 'test/delombok/resource/after/DataPlain.java')
-rw-r--r-- | test/delombok/resource/after/DataPlain.java | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/test/delombok/resource/after/DataPlain.java b/test/delombok/resource/after/DataPlain.java index 6b7aeae6..2938a46e 100644 --- a/test/delombok/resource/after/DataPlain.java +++ b/test/delombok/resource/after/DataPlain.java @@ -1,19 +1,25 @@ class Data1 { final int x; String name; + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") public Data1(final int x) { this.x = x; } + @java.lang.SuppressWarnings("all") public int getX() { - return x; + return this.x; } + @java.lang.SuppressWarnings("all") public String getName() { - return name; + return this.name; } + @java.lang.SuppressWarnings("all") public void setName(final String name) { this.name = name; } @java.lang.Override + @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (o == null) return false; @@ -24,6 +30,7 @@ class Data1 { return true; } @java.lang.Override + @java.lang.SuppressWarnings("all") public int hashCode() { final int PRIME = 31; int result = 1; @@ -32,26 +39,33 @@ class Data1 { return result; } @java.lang.Override + @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "Data1(x=" + x + ", name=" + name + ")"; + return "Data1(x=" + this.x + ", name=" + this.name + ")"; } } class Data2 { final int x; String name; + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") public Data2(final int x) { this.x = x; } + @java.lang.SuppressWarnings("all") public int getX() { - return x; + return this.x; } + @java.lang.SuppressWarnings("all") public String getName() { - return name; + return this.name; } + @java.lang.SuppressWarnings("all") public void setName(final String name) { this.name = name; } @java.lang.Override + @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (o == null) return false; @@ -62,6 +76,7 @@ class Data2 { return true; } @java.lang.Override + @java.lang.SuppressWarnings("all") public int hashCode() { final int PRIME = 31; int result = 1; @@ -70,7 +85,8 @@ class Data2 { return result; } @java.lang.Override + @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "Data2(x=" + x + ", name=" + name + ")"; + return "Data2(x=" + this.x + ", name=" + this.name + ")"; } } |