aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SetterOnClass.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-22 01:33:24 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-22 01:33:24 +0200
commit483e23d3853aa37a19390019fcf0db97ac8bc1d4 (patch)
tree1794c6fc66136f962ee4c9c6a229e39c0af827e5 /test/transform/resource/after-ecj/SetterOnClass.java
parent59e585a0c68959eb72be34524bdad19df5dc8a4d (diff)
downloadlombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.gz
lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.bz2
lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.zip
Added tests for ecj, fixed a few minor bugs that came out of that.
Diffstat (limited to 'test/transform/resource/after-ecj/SetterOnClass.java')
-rw-r--r--test/transform/resource/after-ecj/SetterOnClass.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SetterOnClass.java b/test/transform/resource/after-ecj/SetterOnClass.java
new file mode 100644
index 00000000..e92e217c
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterOnClass.java
@@ -0,0 +1,69 @@
+@lombok.Setter class SetterOnClass1 {
+ @lombok.Setter(lombok.AccessLevel.NONE) boolean isNone;
+ boolean isPublic;
+ SetterOnClass1() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setIsPublic(final boolean isPublic) {
+ this.isPublic = isPublic;
+ }
+}
+@lombok.Setter(lombok.AccessLevel.PROTECTED) class SetterOnClass2 {
+ @lombok.Setter(lombok.AccessLevel.NONE) boolean isNone;
+ boolean isProtected;
+ @lombok.Setter(lombok.AccessLevel.PACKAGE) boolean isPackage;
+ SetterOnClass2() {
+ super();
+ }
+ @java.lang.SuppressWarnings("all") void setIsPackage(final boolean isPackage) {
+ this.isPackage = isPackage;
+ }
+ protected @java.lang.SuppressWarnings("all") void setIsProtected(final boolean isProtected) {
+ this.isProtected = isProtected;
+ }
+}
+@lombok.Setter(lombok.AccessLevel.PACKAGE) class SetterOnClass3 {
+ @lombok.Setter(lombok.AccessLevel.NONE) boolean isNone;
+ boolean isPackage;
+ SetterOnClass3() {
+ super();
+ }
+ @java.lang.SuppressWarnings("all") void setIsPackage(final boolean isPackage) {
+ this.isPackage = isPackage;
+ }
+}
+@lombok.Setter(lombok.AccessLevel.PRIVATE) class SetterOnClass4 {
+ @lombok.Setter(lombok.AccessLevel.NONE) boolean isNone;
+ boolean isPrivate;
+ SetterOnClass4() {
+ super();
+ }
+ private @java.lang.SuppressWarnings("all") void setIsPrivate(final boolean isPrivate) {
+ this.isPrivate = isPrivate;
+ }
+}
+@lombok.Setter(lombok.AccessLevel.PUBLIC) class SetterOnClass5 {
+ @lombok.Setter(lombok.AccessLevel.NONE) boolean isNone;
+ boolean isPublic;
+ SetterOnClass5() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setIsPublic(final boolean isPublic) {
+ this.isPublic = isPublic;
+ }
+}
+@lombok.Setter class SetterOnClass6 {
+ String couldBeNull;
+ @lombok.NonNull String nonNull;
+ SetterOnClass6() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setCouldBeNull(final String couldBeNull) {
+ this.couldBeNull = couldBeNull;
+ }
+ public @java.lang.SuppressWarnings("all") void setNonNull(final @lombok.NonNull String nonNull) {
+ if ((nonNull == null))
+ throw new java.lang.NullPointerException("nonNull");
+ this.nonNull = nonNull;
+ }
+}