From 0d7df01a0711604ce3da57e11815d376c7071870 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 20 Jul 2010 01:35:40 +0200 Subject: Updated the tests to reflect recent modifications: use 'this' where possible and add @SuppressWarnings for all generated fields and methods. --- test/delombok/resource/after/DataIgnore.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/delombok/resource/after/DataIgnore.java') diff --git a/test/delombok/resource/after/DataIgnore.java b/test/delombok/resource/after/DataIgnore.java index 706d7b59..feb2c0ef 100644 --- a/test/delombok/resource/after/DataIgnore.java +++ b/test/delombok/resource/after/DataIgnore.java @@ -1,13 +1,17 @@ class DataIgnore { final int x; String $name; + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") public DataIgnore(final int x) { this.x = x; } + @java.lang.SuppressWarnings("all") public int getX() { - return x; + return this.x; } @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; @@ -17,6 +21,7 @@ class DataIgnore { return true; } @java.lang.Override + @java.lang.SuppressWarnings("all") public int hashCode() { final int PRIME = 31; int result = 1; @@ -24,7 +29,8 @@ class DataIgnore { return result; } @java.lang.Override + @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "DataIgnore(x=" + x + ")"; + return "DataIgnore(x=" + this.x + ")"; } } -- cgit