diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-06 21:26:55 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-06 21:26:55 +0200 |
commit | 8ca3ddaa530ca287caff32c2b0dbcff8c17e74c2 (patch) | |
tree | cf0f8d893ea563b1109762c7220ecf18f588a705 /test/transform/resource/after-delombok | |
parent | 87f763a94c87b03da269d110c44e7e750ddf5211 (diff) | |
download | lombok-8ca3ddaa530ca287caff32c2b0dbcff8c17e74c2.tar.gz lombok-8ca3ddaa530ca287caff32c2b0dbcff8c17e74c2.tar.bz2 lombok-8ca3ddaa530ca287caff32c2b0dbcff8c17e74c2.zip |
fully tested the HandleWither impl for eclipse.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/WitherPlain.java | 2 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/WitherWithGenerics.java | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/test/transform/resource/after-delombok/WitherPlain.java b/test/transform/resource/after-delombok/WitherPlain.java index ab6a3f4b..a2e947bd 100644 --- a/test/transform/resource/after-delombok/WitherPlain.java +++ b/test/transform/resource/after-delombok/WitherPlain.java @@ -2,6 +2,8 @@ class WitherPlain { int i; final int foo; WitherPlain(int i, int foo) { + this.i = i; + this.foo = foo; } @java.lang.SuppressWarnings("all") public WitherPlain withI(final int i) { diff --git a/test/transform/resource/after-delombok/WitherWithGenerics.java b/test/transform/resource/after-delombok/WitherWithGenerics.java index 9630c792..98bbd04d 100644 --- a/test/transform/resource/after-delombok/WitherWithGenerics.java +++ b/test/transform/resource/after-delombok/WitherWithGenerics.java @@ -1,15 +1,20 @@ class WitherWithGenerics<T, J extends T, L extends java.lang.Number> { J test; java.util.List<L> test2; + java.util.List<? extends L> test3; int $i; - public WitherWithGenerics(J test, java.util.List<L> test2) { + public WitherWithGenerics(J test, java.util.List<L> test2, java.util.List<? extends L> test3) { } @java.lang.SuppressWarnings("all") public WitherWithGenerics<T, J, L> withTest(final J test) { - return this.test == test ? this : new WitherWithGenerics<T, J, L>(test, this.test2); + return this.test == test ? this : new WitherWithGenerics<T, J, L>(test, this.test2, this.test3); } @java.lang.SuppressWarnings("all") public WitherWithGenerics<T, J, L> withTest2(final java.util.List<L> test2) { - return this.test2 == test2 ? this : new WitherWithGenerics<T, J, L>(this.test, test2); + return this.test2 == test2 ? this : new WitherWithGenerics<T, J, L>(this.test, test2, this.test3); + } + @java.lang.SuppressWarnings("all") + public WitherWithGenerics<T, J, L> withTest3(final java.util.List<? extends L> test3) { + return this.test3 == test3 ? this : new WitherWithGenerics<T, J, L>(this.test, this.test2, test3); } } |