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-ecj/WitherAlreadyExists.java | |
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-ecj/WitherAlreadyExists.java')
-rw-r--r-- | test/transform/resource/after-ecj/WitherAlreadyExists.java | 79 |
1 files changed, 78 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/WitherAlreadyExists.java b/test/transform/resource/after-ecj/WitherAlreadyExists.java index 0facc12f..ded10755 100644 --- a/test/transform/resource/after-ecj/WitherAlreadyExists.java +++ b/test/transform/resource/after-ecj/WitherAlreadyExists.java @@ -1 +1,78 @@ -//ignore +class Wither1 { + @lombok.experimental.Wither boolean foo; + void withFoo(boolean foo) { + } + Wither1(boolean foo) { + super(); + } +} +class Wither2 { + @lombok.experimental.Wither boolean foo; + void withFoo(String foo) { + } + Wither2(boolean foo) { + super(); + } +} +class Wither3 { + @lombok.experimental.Wither String foo; + void withFoo(boolean foo) { + } + Wither3(String foo) { + super(); + } +} +class Wither4 { + @lombok.experimental.Wither String foo; + void withFoo(String foo) { + } + Wither4(String foo) { + super(); + } +} +class Wither5 { + @lombok.experimental.Wither String foo; + void withFoo() { + } + Wither5(String foo) { + super(); + } + public @java.lang.SuppressWarnings("all") Wither5 withFoo(final String foo) { + return ((this.foo == foo) ? this : new Wither5(foo)); + } +} +class Wither6 { + @lombok.experimental.Wither String foo; + void withFoo(String foo, int x) { + } + Wither6(String foo) { + super(); + } + public @java.lang.SuppressWarnings("all") Wither6 withFoo(final String foo) { + return ((this.foo == foo) ? this : new Wither6(foo)); + } +} +class Wither7 { + @lombok.experimental.Wither String foo; + void withFoo(String foo, Object... x) { + } + Wither7(String foo) { + super(); + } +} +class Wither8 { + @lombok.experimental.Wither boolean isFoo; + void withIsFoo(boolean foo) { + } + Wither8(boolean foo) { + super(); + } +} +class Wither9 { + @lombok.experimental.Wither boolean isFoo; + void withFoo(boolean foo) { + } + Wither9(boolean foo) { + super(); + } +} |