aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/SetterAlreadyExists.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-03-26 23:49:39 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-03-26 23:49:39 +0200
commite98d226cfb9a4b76b12e38e8ac590fb6c6ebbacc (patch)
treeb9783fd8b03bd49244d7f43cc53f1c22972d33ea /test/transform/resource/after-delombok/SetterAlreadyExists.java
parent7ddafc0fe573b0d97a4bf27d42caccad695af996 (diff)
downloadlombok-e98d226cfb9a4b76b12e38e8ac590fb6c6ebbacc.tar.gz
lombok-e98d226cfb9a4b76b12e38e8ac590fb6c6ebbacc.tar.bz2
lombok-e98d226cfb9a4b76b12e38e8ac590fb6c6ebbacc.zip
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.
Diffstat (limited to 'test/transform/resource/after-delombok/SetterAlreadyExists.java')
-rw-r--r--test/transform/resource/after-delombok/SetterAlreadyExists.java14
1 files changed, 11 insertions, 3 deletions
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