aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/after/DataPlain.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-07-20 01:35:40 +0200
committerRoel Spilker <r.spilker@gmail.com>2010-07-20 01:35:40 +0200
commit0d7df01a0711604ce3da57e11815d376c7071870 (patch)
tree8b0bc84bf45ac725a86697b4a916e60027bcf626 /test/delombok/resource/after/DataPlain.java
parent9b886c140cf3cbc22c8db0ec8e37b95b45d7b4d9 (diff)
downloadlombok-0d7df01a0711604ce3da57e11815d376c7071870.tar.gz
lombok-0d7df01a0711604ce3da57e11815d376c7071870.tar.bz2
lombok-0d7df01a0711604ce3da57e11815d376c7071870.zip
Updated the tests to reflect recent modifications: use 'this' where possible and add @SuppressWarnings for all generated fields and methods.
Diffstat (limited to 'test/delombok/resource/after/DataPlain.java')
-rw-r--r--test/delombok/resource/after/DataPlain.java28
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 + ")";
}
}