From 8ca3ddaa530ca287caff32c2b0dbcff8c17e74c2 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 6 Aug 2012 21:26:55 +0200 Subject: fully tested the HandleWither impl for eclipse. --- test/transform/resource/after-delombok/WitherPlain.java | 2 ++ .../transform/resource/after-delombok/WitherWithGenerics.java | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'test/transform/resource/after-delombok') 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 { J test; java.util.List test2; + java.util.List test3; int $i; - public WitherWithGenerics(J test, java.util.List test2) { + public WitherWithGenerics(J test, java.util.List test2, java.util.List test3) { } @java.lang.SuppressWarnings("all") public WitherWithGenerics withTest(final J test) { - return this.test == test ? this : new WitherWithGenerics(test, this.test2); + return this.test == test ? this : new WitherWithGenerics(test, this.test2, this.test3); } @java.lang.SuppressWarnings("all") public WitherWithGenerics withTest2(final java.util.List test2) { - return this.test2 == test2 ? this : new WitherWithGenerics(this.test, test2); + return this.test2 == test2 ? this : new WitherWithGenerics(this.test, test2, this.test3); + } + @java.lang.SuppressWarnings("all") + public WitherWithGenerics withTest3(final java.util.List test3) { + return this.test3 == test3 ? this : new WitherWithGenerics(this.test, this.test2, test3); } } -- cgit