aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/BuilderJavadoc.java57
-rw-r--r--test/transform/resource/after-ecj/BuilderWithBadNames.java33
-rw-r--r--test/transform/resource/after-ecj/NonNullTypeUse.java40
-rw-r--r--test/transform/resource/after-ecj/SetterAndWitherJavadoc.java22
-rw-r--r--test/transform/resource/after-ecj/SetterWitherJavadocParamCopy.java13
5 files changed, 152 insertions, 13 deletions
diff --git a/test/transform/resource/after-ecj/BuilderJavadoc.java b/test/transform/resource/after-ecj/BuilderJavadoc.java
new file mode 100644
index 00000000..b7403835
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderJavadoc.java
@@ -0,0 +1,57 @@
+import java.util.List;
+@lombok.Builder class BuilderJavadoc<T> {
+ public static class BuilderJavadocBuilder<T> {
+ private @java.lang.SuppressWarnings("all") int basic;
+ private @java.lang.SuppressWarnings("all") int getsetwith;
+ private @java.lang.SuppressWarnings("all") int predef;
+ private @java.lang.SuppressWarnings("all") int predefWithJavadoc;
+ public BuilderJavadocBuilder<T> predef(final int x) {
+ this.predef = (x * 10);
+ return this;
+ }
+ public BuilderJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = (x * 100);
+ return this;
+ }
+ @java.lang.SuppressWarnings("all") BuilderJavadocBuilder() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") BuilderJavadocBuilder<T> basic(final int basic) {
+ this.basic = basic;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderJavadocBuilder<T> getsetwith(final int getsetwith) {
+ this.getsetwith = getsetwith;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderJavadoc<T> build() {
+ return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((((((("BuilderJavadoc.BuilderJavadocBuilder(basic=" + this.basic) + ", getsetwith=") + this.getsetwith) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ")");
+ }
+ }
+ private final int basic;
+ private @lombok.Getter @lombok.Setter @lombok.experimental.Wither int getsetwith;
+ private final int predef;
+ private final int predefWithJavadoc;
+ @java.lang.SuppressWarnings("all") BuilderJavadoc(final int basic, final int getsetwith, final int predef, final int predefWithJavadoc) {
+ super();
+ this.basic = basic;
+ this.getsetwith = getsetwith;
+ this.predef = predef;
+ this.predefWithJavadoc = predefWithJavadoc;
+ }
+ public static @java.lang.SuppressWarnings("all") <T>BuilderJavadocBuilder<T> builder() {
+ return new BuilderJavadocBuilder<T>();
+ }
+ public @java.lang.SuppressWarnings("all") int getGetsetwith() {
+ return this.getsetwith;
+ }
+ public @java.lang.SuppressWarnings("all") void setGetsetwith(final int getsetwith) {
+ this.getsetwith = getsetwith;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderJavadoc<T> withGetsetwith(final int getsetwith) {
+ return ((this.getsetwith == getsetwith) ? this : new BuilderJavadoc<T>(this.basic, getsetwith, this.predef, this.predefWithJavadoc));
+ }
+}
diff --git a/test/transform/resource/after-ecj/BuilderWithBadNames.java b/test/transform/resource/after-ecj/BuilderWithBadNames.java
new file mode 100644
index 00000000..a31b2f16
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderWithBadNames.java
@@ -0,0 +1,33 @@
+public @lombok.Builder class BuilderWithBadNames {
+ public static @java.lang.SuppressWarnings("all") class BuilderWithBadNamesBuilder {
+ private @java.lang.SuppressWarnings("all") String build;
+ private @java.lang.SuppressWarnings("all") String toString;
+ @java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder build(final String build) {
+ this.build = build;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder toString(final String toString) {
+ this.toString = toString;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderWithBadNames build() {
+ return new BuilderWithBadNames(build, toString);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((("BuilderWithBadNames.BuilderWithBadNamesBuilder(build=" + this.build) + ", toString=") + this.toString) + ")");
+ }
+ }
+ String build;
+ String toString;
+ @java.lang.SuppressWarnings("all") BuilderWithBadNames(final String build, final String toString) {
+ super();
+ this.build = build;
+ this.toString = toString;
+ }
+ public static @java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder builder() {
+ return new BuilderWithBadNamesBuilder();
+ }
+}
diff --git a/test/transform/resource/after-ecj/NonNullTypeUse.java b/test/transform/resource/after-ecj/NonNullTypeUse.java
new file mode 100644
index 00000000..4cf1aa5a
--- /dev/null
+++ b/test/transform/resource/after-ecj/NonNullTypeUse.java
@@ -0,0 +1,40 @@
+import lombok.NonNull;
+class NonNullTypeUse {
+ NonNullTypeUse() {
+ super();
+ }
+ void test1(@NonNull String[][][] args) {
+ if ((args == null))
+ {
+ throw new java.lang.NullPointerException("args is marked @NonNull but is null");
+ }
+ }
+ void test2(String @NonNull [][][] args) {
+ if ((args == null))
+ {
+ throw new java.lang.NullPointerException("args is marked @NonNull but is null");
+ }
+ }
+ void test3(String[] @NonNull [][] args) {
+ }
+ void test4(String[][] @NonNull [] args) {
+ }
+ void test5(@NonNull String simple) {
+ if ((simple == null))
+ {
+ throw new java.lang.NullPointerException("simple is marked @NonNull but is null");
+ }
+ }
+ void test6(java.lang.@NonNull String weird) {
+ if ((weird == null))
+ {
+ throw new java.lang.NullPointerException("weird is marked @NonNull but is null");
+ }
+ }
+ void test7(java.lang.String @NonNull [][] weird) {
+ if ((weird == null))
+ {
+ throw new java.lang.NullPointerException("weird is marked @NonNull but is null");
+ }
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/SetterAndWitherJavadoc.java b/test/transform/resource/after-ecj/SetterAndWitherJavadoc.java
new file mode 100644
index 00000000..623277a0
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterAndWitherJavadoc.java
@@ -0,0 +1,22 @@
+import lombok.experimental.Wither;
+class SetterAndWitherJavadoc {
+ @lombok.Setter @lombok.experimental.Wither int i;
+ @lombok.Setter @lombok.experimental.Wither int j;
+ SetterAndWitherJavadoc(int i, int j) {
+ super();
+ this.i = i;
+ this.j = j;
+ }
+ public @java.lang.SuppressWarnings("all") void setI(final int i) {
+ this.i = i;
+ }
+ public @java.lang.SuppressWarnings("all") SetterAndWitherJavadoc withI(final int i) {
+ return ((this.i == i) ? this : new SetterAndWitherJavadoc(i, this.j));
+ }
+ public @java.lang.SuppressWarnings("all") void setJ(final int j) {
+ this.j = j;
+ }
+ public @java.lang.SuppressWarnings("all") SetterAndWitherJavadoc withJ(final int j) {
+ return ((this.j == j) ? this : new SetterAndWitherJavadoc(this.i, j));
+ }
+}
diff --git a/test/transform/resource/after-ecj/SetterWitherJavadocParamCopy.java b/test/transform/resource/after-ecj/SetterWitherJavadocParamCopy.java
deleted file mode 100644
index 741342f7..00000000
--- a/test/transform/resource/after-ecj/SetterWitherJavadocParamCopy.java
+++ /dev/null
@@ -1,13 +0,0 @@
-class SetterWitherJavadocParamCopy {
- private @lombok.Setter @lombok.experimental.Wither int fieldName;
- public SetterWitherJavadocParamCopy(int f) {
- super();
- this.fieldName = f;
- }
- public @java.lang.SuppressWarnings("all") void setFieldName(final int fieldName) {
- this.fieldName = fieldName;
- }
- public @java.lang.SuppressWarnings("all") SetterWitherJavadocParamCopy withFieldName(final int fieldName) {
- return ((this.fieldName == fieldName) ? this : new SetterWitherJavadocParamCopy(fieldName));
- }
-}