aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/Accessors.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/Accessors.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/Accessors.java')
-rw-r--r--test/transform/resource/after-delombok/Accessors.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/Accessors.java b/test/transform/resource/after-delombok/Accessors.java
index 71c4c92e..b21f2de9 100644
--- a/test/transform/resource/after-delombok/Accessors.java
+++ b/test/transform/resource/after-delombok/Accessors.java
@@ -108,4 +108,26 @@ class AccessorsPrefix3 {
result = result * PRIME + (this.getName() == null ? 0 : this.getName().hashCode());
return result;
}
+}
+class AccessorsFluentGenerics<T extends Number> {
+ private String name;
+ @java.lang.SuppressWarnings("all")
+ public AccessorsFluentGenerics<T> name(final String name) {
+ this.name = name;
+ return this;
+ }
+}
+class AccessorsFluentNoChaining {
+ private String name;
+ @java.lang.SuppressWarnings("all")
+ public void name(final String name) {
+ this.name = name;
+ }
+}
+class AccessorsFluentStatic<T extends Number> {
+ private static String name;
+ @java.lang.SuppressWarnings("all")
+ public static void name(final String name) {
+ AccessorsFluentStatic.name = name;
+ }
} \ No newline at end of file