From e98d226cfb9a4b76b12e38e8ac590fb6c6ebbacc Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 26 Mar 2012 23:49:39 +0200 Subject: Added full test suite for @Accessors, as well as the new rules for whether or not a method is already there so lombok shouldn't generate it (now number of parameters matters), and added generics testing to RequiredArgsConstructor's static constructor feature. --- .../resource/after-delombok/SetterAlreadyExists.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'test/transform/resource/after-delombok/SetterAlreadyExists.java') diff --git a/test/transform/resource/after-delombok/SetterAlreadyExists.java b/test/transform/resource/after-delombok/SetterAlreadyExists.java index abc6d48f..5bfc1f83 100644 --- a/test/transform/resource/after-delombok/SetterAlreadyExists.java +++ b/test/transform/resource/after-delombok/SetterAlreadyExists.java @@ -22,24 +22,32 @@ class Setter5 { String foo; void setFoo() { } + @java.lang.SuppressWarnings("all") + public void setFoo(final String foo) { + this.foo = foo; + } } class Setter6 { String foo; void setFoo(String foo, int x) { } + @java.lang.SuppressWarnings("all") + public void setFoo(final String foo) { + this.foo = foo; + } } class Setter7 { String foo; - static void setFoo() { + void setFoo(String foo, Object... x) { } } class Setter8 { boolean isFoo; - void setIsFoo() { + void setIsFoo(boolean foo) { } } class Setter9 { boolean isFoo; - void setFoo() { + void setFoo(boolean foo) { } } \ No newline at end of file -- cgit