aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/BuilderJavadoc.java116
-rw-r--r--test/transform/resource/after-delombok/BuilderWithBadNames.java42
-rw-r--r--test/transform/resource/after-delombok/BuilderWithDeprecated.java5
-rw-r--r--test/transform/resource/after-delombok/DataPlain.java1
-rw-r--r--test/transform/resource/after-delombok/NonNullTypeUse.java32
-rw-r--r--test/transform/resource/after-delombok/SetterAndWitherJavadoc.java46
-rw-r--r--test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java28
-rw-r--r--test/transform/resource/after-delombok/SneakyThrowsPlain.java1
-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
-rw-r--r--test/transform/resource/before/BuilderJavadoc.java54
-rw-r--r--test/transform/resource/before/BuilderWithBadNames.java5
-rw-r--r--test/transform/resource/before/BuilderWithDeprecated.java2
-rw-r--r--test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java10
-rw-r--r--test/transform/resource/before/NonNullTypeUse.java19
-rw-r--r--test/transform/resource/before/SetterAndWitherJavadoc.java26
-rw-r--r--test/transform/resource/before/SetterWitherJavadocParamCopy.java16
-rw-r--r--test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages2
-rw-r--r--test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages2
22 files changed, 513 insertions, 59 deletions
diff --git a/test/transform/resource/after-delombok/BuilderJavadoc.java b/test/transform/resource/after-delombok/BuilderJavadoc.java
new file mode 100644
index 00000000..196ced3b
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderJavadoc.java
@@ -0,0 +1,116 @@
+import java.util.List;
+class BuilderJavadoc<T> {
+ /**
+ * basic gets only a builder setter.
+ * @see #getsetwith
+ *
+ * @return tag is removed from the setter.
+ */
+ private final int basic;
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ */
+ private int getsetwith;
+ /**
+ * Predef has a predefined builder setter with no javadoc, and the builder setter does not get this one.
+ * @param tag remains on the field.
+ * @return tag remains on the field.
+ */
+ private final int predef;
+ /**
+ * predefWithJavadoc has a predefined builder setter with javadoc, so it keeps that one untouched.
+ * @param tag is removed from the field.
+ * @return tag remains on the field.
+ */
+ private final int predefWithJavadoc;
+ public static class BuilderJavadocBuilder<T> {
+ @java.lang.SuppressWarnings("all")
+ private int basic;
+ @java.lang.SuppressWarnings("all")
+ private int getsetwith;
+ @java.lang.SuppressWarnings("all")
+ private int predef;
+ @java.lang.SuppressWarnings("all")
+ private int predefWithJavadoc;
+ public BuilderJavadocBuilder<T> predef(final int x) {
+ this.predef = x * 10;
+ return this;
+ }
+ /**
+ * This javadoc remains untouched.
+ * @param x 1/100 of the thing
+ * @return the updated builder
+ */
+ public BuilderJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = x * 100;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ BuilderJavadocBuilder() {
+ }
+ /**
+ * basic gets only a builder setter.
+ * @see #getsetwith
+ * @param tag is moved to the setter.
+ */
+ @java.lang.SuppressWarnings("all")
+ public BuilderJavadocBuilder<T> basic(final int basic) {
+ this.basic = basic;
+ return this;
+ }
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ * @param tag is moved to the setters and wither.
+ */
+ @java.lang.SuppressWarnings("all")
+ public BuilderJavadocBuilder<T> getsetwith(final int getsetwith) {
+ this.getsetwith = getsetwith;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderJavadoc<T> build() {
+ return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderJavadoc.BuilderJavadocBuilder(basic=" + this.basic + ", getsetwith=" + this.getsetwith + ", predef=" + this.predef + ", predefWithJavadoc=" + this.predefWithJavadoc + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ BuilderJavadoc(final int basic, final int getsetwith, final int predef, final int predefWithJavadoc) {
+ this.basic = basic;
+ this.getsetwith = getsetwith;
+ this.predef = predef;
+ this.predefWithJavadoc = predefWithJavadoc;
+ }
+ @java.lang.SuppressWarnings("all")
+ public static <T> BuilderJavadocBuilder<T> builder() {
+ return new BuilderJavadocBuilder<T>();
+ }
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ *
+ * @return tag is moved to the getter.
+ */
+ @java.lang.SuppressWarnings("all")
+ public int getGetsetwith() {
+ return this.getsetwith;
+ }
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ * @param tag is moved to the setters and wither.
+ */
+ @java.lang.SuppressWarnings("all")
+ public void setGetsetwith(final int getsetwith) {
+ this.getsetwith = getsetwith;
+ }
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ * @param tag is moved to the setters and wither.
+ */
+ @java.lang.SuppressWarnings("all")
+ public 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-delombok/BuilderWithBadNames.java b/test/transform/resource/after-delombok/BuilderWithBadNames.java
new file mode 100644
index 00000000..f413be23
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderWithBadNames.java
@@ -0,0 +1,42 @@
+public class BuilderWithBadNames {
+ String build;
+ String toString;
+ @java.lang.SuppressWarnings("all")
+ BuilderWithBadNames(final String build, final String toString) {
+ this.build = build;
+ this.toString = toString;
+ }
+ @java.lang.SuppressWarnings("all")
+ public static class BuilderWithBadNamesBuilder {
+ @java.lang.SuppressWarnings("all")
+ private String build;
+ @java.lang.SuppressWarnings("all")
+ private String toString;
+ @java.lang.SuppressWarnings("all")
+ BuilderWithBadNamesBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithBadNamesBuilder build(final String build) {
+ this.build = build;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithBadNamesBuilder toString(final String toString) {
+ this.toString = toString;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithBadNames build() {
+ return new BuilderWithBadNames(build, toString);
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderWithBadNames.BuilderWithBadNamesBuilder(build=" + this.build + ", toString=" + this.toString + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ public static BuilderWithBadNamesBuilder builder() {
+ return new BuilderWithBadNamesBuilder();
+ }
+}
diff --git a/test/transform/resource/after-delombok/BuilderWithDeprecated.java b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
index cd887529..f06a11f2 100644
--- a/test/transform/resource/after-delombok/BuilderWithDeprecated.java
+++ b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
@@ -1,7 +1,7 @@
import com.google.common.collect.ImmutableList;
public class BuilderWithDeprecated {
/**
- * @deprecated
+ * @deprecated since always
*/
String dep1;
@Deprecated
@@ -30,6 +30,9 @@ public class BuilderWithDeprecated {
@java.lang.SuppressWarnings("all")
BuilderWithDeprecatedBuilder() {
}
+ /**
+ * @deprecated since always
+ */
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public BuilderWithDeprecatedBuilder dep1(final String dep1) {
diff --git a/test/transform/resource/after-delombok/DataPlain.java b/test/transform/resource/after-delombok/DataPlain.java
index e7d452b6..15b834d9 100644
--- a/test/transform/resource/after-delombok/DataPlain.java
+++ b/test/transform/resource/after-delombok/DataPlain.java
@@ -152,6 +152,7 @@ final class Data3 {
final class Data4 extends java.util.Timer {
int x;
Data4() {
+ super();
}
@java.lang.SuppressWarnings("all")
public int getX() {
diff --git a/test/transform/resource/after-delombok/NonNullTypeUse.java b/test/transform/resource/after-delombok/NonNullTypeUse.java
new file mode 100644
index 00000000..27719480
--- /dev/null
+++ b/test/transform/resource/after-delombok/NonNullTypeUse.java
@@ -0,0 +1,32 @@
+import lombok.NonNull;
+class NonNullTypeUse {
+ 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");
+ }
+ }
+}
diff --git a/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java b/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
new file mode 100644
index 00000000..8c0505e7
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
@@ -0,0 +1,46 @@
+class SetterAndWitherJavadoc {
+ /**
+ * Some value.
+ */
+ int i;
+ /**
+ * Some other value.
+ */
+ int j;
+ SetterAndWitherJavadoc(int i, int j) {
+ this.i = i;
+ this.j = j;
+ }
+ /**
+ * Some value.
+ * @param the new value
+ */
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ /**
+ * Some value.
+ * @param the new value
+ */
+ @java.lang.SuppressWarnings("all")
+ public SetterAndWitherJavadoc withI(final int i) {
+ return this.i == i ? this : new SetterAndWitherJavadoc(i, this.j);
+ }
+ /**
+ * Set some other value.
+ * @param the new other value
+ */
+ @java.lang.SuppressWarnings("all")
+ public void setJ(final int j) {
+ this.j = j;
+ }
+ /**
+ * Reinstantiate with some other value.
+ * @param the other new other value
+ */
+ @java.lang.SuppressWarnings("all")
+ public SetterAndWitherJavadoc withJ(final int j) {
+ return this.j == j ? this : new SetterAndWitherJavadoc(this.i, j);
+ }
+}
diff --git a/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java b/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java
deleted file mode 100644
index e6f5ab75..00000000
--- a/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java
+++ /dev/null
@@ -1,28 +0,0 @@
-class SetterWitherJavadocParamCopy {
- /**
- * Some text
- */
- private int fieldName;
-
- public SetterWitherJavadocParamCopy(int f) {
- this.fieldName = f;
- }
- /**
- * Some text
- *
- * @param fieldName Hello, World1
- */
- @java.lang.SuppressWarnings("all")
- public void setFieldName(final int fieldName) {
- this.fieldName = fieldName;
- }
- /**
- * Some text
- *
- * @param fieldName Hello, World1
- */
- @java.lang.SuppressWarnings("all")
- public SetterWitherJavadocParamCopy withFieldName(final int fieldName) {
- return this.fieldName == fieldName ? this : new SetterWitherJavadocParamCopy(fieldName);
- }
-} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/SneakyThrowsPlain.java b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
index 86f7790c..32ab8054 100644
--- a/test/transform/resource/after-delombok/SneakyThrowsPlain.java
+++ b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
@@ -1,5 +1,6 @@
class SneakyThrowsPlain {
SneakyThrowsPlain() {
+ super();
try {
System.out.println("constructor");
} catch (final java.lang.Throwable $ex) {
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));
- }
-}
diff --git a/test/transform/resource/before/BuilderJavadoc.java b/test/transform/resource/before/BuilderJavadoc.java
new file mode 100644
index 00000000..c2e0a6e0
--- /dev/null
+++ b/test/transform/resource/before/BuilderJavadoc.java
@@ -0,0 +1,54 @@
+import java.util.List;
+
+@lombok.Builder
+class BuilderJavadoc<T> {
+ /**
+ * basic gets only a builder setter.
+ * @see #getsetwith
+ * @param tag is moved to the setter.
+ * @return tag is removed from the setter.
+ */
+ private final int basic;
+
+ /**
+ * getsetwith gets a builder setter, an instance getter and setter, and a wither.
+ * @param tag is moved to the setters and wither.
+ * @return tag is moved to the getter.
+ */
+ @lombok.Getter
+ @lombok.Setter
+ @lombok.experimental.Wither
+ private int getsetwith;
+
+ /**
+ * Predef has a predefined builder setter with no javadoc, and the builder setter does not get this one.
+ * @param tag remains on the field.
+ * @return tag remains on the field.
+ */
+ private final int predef;
+
+ /**
+ * predefWithJavadoc has a predefined builder setter with javadoc, so it keeps that one untouched.
+ * @param tag is removed from the field.
+ * @return tag remains on the field.
+ */
+ private final int predefWithJavadoc;
+
+ public static class BuilderJavadocBuilder<T> {
+ public BuilderJavadocBuilder<T> predef(final int x) {
+ this.predef = x * 10;
+ return this;
+ }
+
+ /**
+ * This javadoc remains untouched.
+ * @param x 1/100 of the thing
+ * @return the updated builder
+ */
+ public BuilderJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = x * 100;
+ return this;
+ }
+ }
+
+}
diff --git a/test/transform/resource/before/BuilderWithBadNames.java b/test/transform/resource/before/BuilderWithBadNames.java
new file mode 100644
index 00000000..07f99b64
--- /dev/null
+++ b/test/transform/resource/before/BuilderWithBadNames.java
@@ -0,0 +1,5 @@
+@lombok.Builder
+public class BuilderWithBadNames {
+ String build;
+ String toString;
+}
diff --git a/test/transform/resource/before/BuilderWithDeprecated.java b/test/transform/resource/before/BuilderWithDeprecated.java
index cd8ffad9..1641ccb4 100644
--- a/test/transform/resource/before/BuilderWithDeprecated.java
+++ b/test/transform/resource/before/BuilderWithDeprecated.java
@@ -4,7 +4,7 @@ import lombok.Singular;
@Builder
public class BuilderWithDeprecated {
- /** @deprecated */ String dep1;
+ /** @deprecated since always */ String dep1;
@Deprecated int dep2;
@Singular @Deprecated java.util.List<String> strings;
@Singular @Deprecated ImmutableList<Integer> numbers;
diff --git a/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java b/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java
new file mode 100644
index 00000000..9babf443
--- /dev/null
+++ b/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java
@@ -0,0 +1,10 @@
+// skip-compare-contents
+@lombok.EqualsAndHashCode(of={"y"})
+final class EqualsAndHashCodeWarnOf {
+ int x;
+}
+
+@lombok.EqualsAndHashCode(exclude={"y"})
+final class EqualsAndHashCodeWarnExclude {
+ int x;
+}
diff --git a/test/transform/resource/before/NonNullTypeUse.java b/test/transform/resource/before/NonNullTypeUse.java
new file mode 100644
index 00000000..32179351
--- /dev/null
+++ b/test/transform/resource/before/NonNullTypeUse.java
@@ -0,0 +1,19 @@
+//version 8:
+import lombok.NonNull;
+
+class NonNullTypeUse {
+ void test1(@NonNull String[][][] args) {
+ }
+ void test2(String @NonNull [][][] args) {
+ }
+ void test3(String [] @NonNull [][] args) {
+ }
+ void test4(String [][] @NonNull [] args) {
+ }
+ void test5(@NonNull String simple) {
+ }
+ void test6(java.lang.@NonNull String weird) {
+ }
+ void test7(java.lang.String @NonNull [][] weird) {
+ }
+}
diff --git a/test/transform/resource/before/SetterAndWitherJavadoc.java b/test/transform/resource/before/SetterAndWitherJavadoc.java
new file mode 100644
index 00000000..6953eb39
--- /dev/null
+++ b/test/transform/resource/before/SetterAndWitherJavadoc.java
@@ -0,0 +1,26 @@
+import lombok.experimental.Wither;
+class SetterAndWitherJavadoc {
+ /**
+ * Some value.
+ * @param the new value
+ */
+ @lombok.Setter @lombok.experimental.Wither int i;
+
+ /**
+ * Some other value.
+ *
+ * --- SETTER ---
+ * Set some other value.
+ * @param the new other value
+ *
+ * --- WITHER ---
+ * Reinstantiate with some other value.
+ * @param the other new other value
+ */
+ @lombok.Setter @lombok.experimental.Wither int j;
+
+ SetterAndWitherJavadoc(int i, int j) {
+ this.i = i;
+ this.j = j;
+ }
+}
diff --git a/test/transform/resource/before/SetterWitherJavadocParamCopy.java b/test/transform/resource/before/SetterWitherJavadocParamCopy.java
deleted file mode 100644
index 4de091e2..00000000
--- a/test/transform/resource/before/SetterWitherJavadocParamCopy.java
+++ /dev/null
@@ -1,16 +0,0 @@
-class SetterWitherJavadocParamCopy {
- /**
- * Some text
- *
- * @param fieldName Hello, World1
- * --- GETTER ---
- * Getter section
- *
- * @return Sky is blue1
- */
- @lombok.Setter @lombok.experimental.Wither private int fieldName;
-
- public SetterWitherJavadocParamCopy(int f) {
- this.fieldName = f;
- }
-}
diff --git a/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages b/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages
new file mode 100644
index 00000000..2c4fbd68
--- /dev/null
+++ b/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages
@@ -0,0 +1,2 @@
+1 This field does not exist.
+6 This field does not exist, or would have been excluded anyway. \ No newline at end of file
diff --git a/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages b/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages
new file mode 100644
index 00000000..2c4fbd68
--- /dev/null
+++ b/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages
@@ -0,0 +1,2 @@
+1 This field does not exist.
+6 This field does not exist, or would have been excluded anyway. \ No newline at end of file