diff options
Diffstat (limited to 'test/delombok/resource')
-rw-r--r-- | test/delombok/resource/after/GetterOnClass.java | 59 | ||||
-rw-r--r-- | test/delombok/resource/after/SetterOnClass.java | 59 | ||||
-rw-r--r-- | test/delombok/resource/before/GetterOnClass.java | 37 | ||||
-rw-r--r-- | test/delombok/resource/before/SetterOnClass.java | 37 |
4 files changed, 192 insertions, 0 deletions
diff --git a/test/delombok/resource/after/GetterOnClass.java b/test/delombok/resource/after/GetterOnClass.java new file mode 100644 index 00000000..bd15ce35 --- /dev/null +++ b/test/delombok/resource/after/GetterOnClass.java @@ -0,0 +1,59 @@ +class GetterOnClass1 { + boolean isNone; + boolean isPublic; + @java.lang.SuppressWarnings("all") + public boolean isPublic() { + return this.isPublic; + } +} +class GetterOnClass2 { + boolean isNone; + boolean isProtected; + boolean isPackage; + @java.lang.SuppressWarnings("all") + protected boolean isProtected() { + return this.isProtected; + } + @java.lang.SuppressWarnings("all") + boolean isPackage() { + return this.isPackage; + } +} +class GetterOnClass3 { + boolean isNone; + boolean isPackage; + @java.lang.SuppressWarnings("all") + boolean isPackage() { + return this.isPackage; + } +} +class GetterOnClass4 { + boolean isNone; + boolean isPrivate; + @java.lang.SuppressWarnings("all") + private boolean isPrivate() { + return this.isPrivate; + } +} +class GetterOnClass5 { + boolean isNone; + boolean isPublic; + @java.lang.SuppressWarnings("all") + public boolean isPublic() { + return this.isPublic; + } +} +class GetterOnClass6 { + String couldBeNull; + @lombok.NonNull + String nonNull; + @java.lang.SuppressWarnings("all") + public String getCouldBeNull() { + return this.couldBeNull; + } + @lombok.NonNull + @java.lang.SuppressWarnings("all") + public String getNonNull() { + return this.nonNull; + } +}
\ No newline at end of file diff --git a/test/delombok/resource/after/SetterOnClass.java b/test/delombok/resource/after/SetterOnClass.java new file mode 100644 index 00000000..05528ff8 --- /dev/null +++ b/test/delombok/resource/after/SetterOnClass.java @@ -0,0 +1,59 @@ +class SetterOnClass1 { + boolean isNone; + boolean isPublic; + @java.lang.SuppressWarnings("all") + public void setIsPublic(final boolean isPublic) { + this.isPublic = isPublic; + } +} +class SetterOnClass2 { + boolean isNone; + boolean isProtected; + boolean isPackage; + @java.lang.SuppressWarnings("all") + protected void setIsProtected(final boolean isProtected) { + this.isProtected = isProtected; + } + @java.lang.SuppressWarnings("all") + void setIsPackage(final boolean isPackage) { + this.isPackage = isPackage; + } +} +class SetterOnClass3 { + boolean isNone; + boolean isPackage; + @java.lang.SuppressWarnings("all") + void setIsPackage(final boolean isPackage) { + this.isPackage = isPackage; + } +} +class SetterOnClass4 { + boolean isNone; + boolean isPrivate; + @java.lang.SuppressWarnings("all") + private void setIsPrivate(final boolean isPrivate) { + this.isPrivate = isPrivate; + } +} +class SetterOnClass5 { + boolean isNone; + boolean isPublic; + @java.lang.SuppressWarnings("all") + public void setIsPublic(final boolean isPublic) { + this.isPublic = isPublic; + } +} +class SetterOnClass6 { + String couldBeNull; + @lombok.NonNull + String nonNull; + @java.lang.SuppressWarnings("all") + public void setCouldBeNull(final String couldBeNull) { + this.couldBeNull = couldBeNull; + } + @java.lang.SuppressWarnings("all") + public void setNonNull(@lombok.NonNull final String nonNull) { + if (nonNull == null) throw new java.lang.NullPointerException("nonNull"); + this.nonNull = nonNull; + } +}
\ No newline at end of file diff --git a/test/delombok/resource/before/GetterOnClass.java b/test/delombok/resource/before/GetterOnClass.java new file mode 100644 index 00000000..0a38b386 --- /dev/null +++ b/test/delombok/resource/before/GetterOnClass.java @@ -0,0 +1,37 @@ +@lombok.Getter +class GetterOnClass1 { + @lombok.Getter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPublic; +} +@lombok.Getter(lombok.AccessLevel.PROTECTED) +class GetterOnClass2 { + @lombok.Getter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isProtected; + @lombok.Getter(lombok.AccessLevel.PACKAGE) + boolean isPackage; +} +@lombok.Getter(lombok.AccessLevel.PACKAGE) +class GetterOnClass3 { + @lombok.Getter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPackage; +} +@lombok.Getter(lombok.AccessLevel.PRIVATE) +class GetterOnClass4 { + @lombok.Getter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPrivate; +} +@lombok.Getter(lombok.AccessLevel.PUBLIC) +class GetterOnClass5 { + @lombok.Getter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPublic; +} +@lombok.Getter +class GetterOnClass6 { + String couldBeNull; + @lombok.NonNull String nonNull; +}
\ No newline at end of file diff --git a/test/delombok/resource/before/SetterOnClass.java b/test/delombok/resource/before/SetterOnClass.java new file mode 100644 index 00000000..5d195ff5 --- /dev/null +++ b/test/delombok/resource/before/SetterOnClass.java @@ -0,0 +1,37 @@ +@lombok.Setter +class SetterOnClass1 { + @lombok.Setter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPublic; +} +@lombok.Setter(lombok.AccessLevel.PROTECTED) +class SetterOnClass2 { + @lombok.Setter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isProtected; + @lombok.Setter(lombok.AccessLevel.PACKAGE) + boolean isPackage; +} +@lombok.Setter(lombok.AccessLevel.PACKAGE) +class SetterOnClass3 { + @lombok.Setter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPackage; +} +@lombok.Setter(lombok.AccessLevel.PRIVATE) +class SetterOnClass4 { + @lombok.Setter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPrivate; +} +@lombok.Setter(lombok.AccessLevel.PUBLIC) +class SetterOnClass5 { + @lombok.Setter(lombok.AccessLevel.NONE) + boolean isNone; + boolean isPublic; +} +@lombok.Setter +class SetterOnClass6 { + String couldBeNull; + @lombok.NonNull String nonNull; +}
\ No newline at end of file |