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/WitherOnClass.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/WitherOnClass.java')
-rw-r--r-- | test/transform/resource/after-ecj/WitherOnClass.java | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/WitherOnClass.java b/test/transform/resource/after-ecj/WitherOnClass.java index 0facc12f..ff4566e5 100644 --- a/test/transform/resource/after-ecj/WitherOnClass.java +++ b/test/transform/resource/after-ecj/WitherOnClass.java @@ -1 +1,50 @@ -//ignore +@lombok.experimental.Wither class WitherOnClass1 { + @lombok.experimental.Wither(lombok.AccessLevel.NONE) boolean isNone; + boolean isPublic; + WitherOnClass1(boolean isNone, boolean isPublic) { + super(); + } + public @java.lang.SuppressWarnings("all") WitherOnClass1 withPublic(final boolean isPublic) { + return ((this.isPublic == isPublic) ? this : new WitherOnClass1(this.isNone, isPublic)); + } +} +@lombok.experimental.Wither(lombok.AccessLevel.PROTECTED) class WitherOnClass2 { + @lombok.experimental.Wither(lombok.AccessLevel.NONE) boolean isNone; + boolean isProtected; + @lombok.experimental.Wither(lombok.AccessLevel.PACKAGE) boolean isPackage; + WitherOnClass2(boolean isNone, boolean isProtected, boolean isPackage) { + super(); + } + @java.lang.SuppressWarnings("all") WitherOnClass2 withPackage(final boolean isPackage) { + return ((this.isPackage == isPackage) ? this : new WitherOnClass2(this.isNone, this.isProtected, isPackage)); + } + protected @java.lang.SuppressWarnings("all") WitherOnClass2 withProtected(final boolean isProtected) { + return ((this.isProtected == isProtected) ? this : new WitherOnClass2(this.isNone, isProtected, this.isPackage)); + } +} +@lombok.experimental.Wither class WitherOnClass3 { + String couldBeNull; + @lombok.NonNull String nonNull; + WitherOnClass3(String couldBeNull, String nonNull) { + super(); + } + public @java.lang.SuppressWarnings("all") WitherOnClass3 withCouldBeNull(final String couldBeNull) { + return ((this.couldBeNull == couldBeNull) ? this : new WitherOnClass3(couldBeNull, this.nonNull)); + } + public @java.lang.SuppressWarnings("all") WitherOnClass3 withNonNull(final @lombok.NonNull String nonNull) { + if ((nonNull == null)) + throw new java.lang.NullPointerException("nonNull"); + return ((this.nonNull == nonNull) ? this : new WitherOnClass3(this.couldBeNull, nonNull)); + } +} +@lombok.experimental.Wither @lombok.experimental.Accessors(prefix = "f") class WitherOnClass4 { + final int fX = 10; + final int fY; + WitherOnClass4(int y) { + super(); + this.fY = y; + } + public @java.lang.SuppressWarnings("all") WitherOnClass4 withY(final int fY) { + return ((this.fY == fY) ? this : new WitherOnClass4(fY)); + } +} |