aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/BuilderConstructorJavadoc.java85
-rw-r--r--test/transform/resource/after-ecj/BuilderConstructorJavadoc.java40
-rw-r--r--test/transform/resource/before/BuilderConstructorJavadoc.java35
3 files changed, 160 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderConstructorJavadoc.java b/test/transform/resource/after-delombok/BuilderConstructorJavadoc.java
new file mode 100644
index 00000000..96673b1a
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderConstructorJavadoc.java
@@ -0,0 +1,85 @@
+import java.util.List;
+
+class BuilderConstructorJavadoc<T> {
+ /**
+ * This is a comment
+ *
+ * @param basic tag is moved to the setter
+ * @param multiline a param comment
+ * can be on multiple lines and can use
+ * {@code @code} or <code>tags</code>
+ * @param predef don't copy this one
+ * @param predefWithJavadoc don't copy this one
+ */
+ BuilderConstructorJavadoc(int basic, int multiline, int predef, int predefWithJavadoc) {
+ }
+
+
+ public static class BuilderConstructorJavadocBuilder<T> {
+ @java.lang.SuppressWarnings("all")
+ private int basic;
+ @java.lang.SuppressWarnings("all")
+ private int multiline;
+ @java.lang.SuppressWarnings("all")
+ private int predef;
+ @java.lang.SuppressWarnings("all")
+ private int predefWithJavadoc;
+
+ public BuilderConstructorJavadocBuilder<T> predef(final int x) {
+ this.predef = x;
+ return this;
+ }
+
+ /**
+ * This javadoc remains untouched.
+ * @param x 1/100 of the thing
+ * @return the updated builder
+ */
+ public BuilderConstructorJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = x;
+ return this;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ BuilderConstructorJavadocBuilder() {
+ }
+
+ /**
+ * @param basic tag is moved to the setter
+ * @return {@code this}.
+ */
+ @java.lang.SuppressWarnings("all")
+ public BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> basic(final int basic) {
+ this.basic = basic;
+ return this;
+ }
+
+ /**
+ * @param multiline a param comment
+ * can be on multiple lines and can use
+ * {@code @code} or <code>tags</code>
+ * @return {@code this}.
+ */
+ @java.lang.SuppressWarnings("all")
+ public BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> multiline(final int multiline) {
+ this.multiline = multiline;
+ return this;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public BuilderConstructorJavadoc<T> build() {
+ return new BuilderConstructorJavadoc<T>(this.basic, this.multiline, this.predef, this.predefWithJavadoc);
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder(basic=" + this.basic + ", multiline=" + this.multiline + ", predef=" + this.predef + ", predefWithJavadoc=" + this.predefWithJavadoc + ")";
+ }
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public static <T> BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> builder() {
+ return new BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T>();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java b/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java
new file mode 100644
index 00000000..bb3916e8
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java
@@ -0,0 +1,40 @@
+import java.util.List;
+class BuilderConstructorJavadoc<T> {
+ public static class BuilderConstructorJavadocBuilder<T> {
+ private @java.lang.SuppressWarnings("all") int basic;
+ private @java.lang.SuppressWarnings("all") int multiline;
+ private @java.lang.SuppressWarnings("all") int predef;
+ private @java.lang.SuppressWarnings("all") int predefWithJavadoc;
+ public BuilderConstructorJavadocBuilder<T> predef(final int x) {
+ this.predef = x;
+ return this;
+ }
+ public BuilderConstructorJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = x;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all") BuilderConstructorJavadocBuilder() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> basic(final int basic) {
+ this.basic = basic;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> multiline(final int multiline) {
+ this.multiline = multiline;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc<T> build() {
+ return new BuilderConstructorJavadoc<T>(this.basic, this.multiline, this.predef, this.predefWithJavadoc);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((((((("BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder(basic=" + this.basic) + ", multiline=") + this.multiline) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ")");
+ }
+ }
+ @lombok.Builder BuilderConstructorJavadoc(int basic, int multiline, int predef, int predefWithJavadoc) {
+ super();
+ }
+ public static @java.lang.SuppressWarnings("all") <T>BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> builder() {
+ return new BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T>();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/BuilderConstructorJavadoc.java b/test/transform/resource/before/BuilderConstructorJavadoc.java
new file mode 100644
index 00000000..ebbd473f
--- /dev/null
+++ b/test/transform/resource/before/BuilderConstructorJavadoc.java
@@ -0,0 +1,35 @@
+import java.util.List;
+
+class BuilderConstructorJavadoc<T> {
+ /**
+ * This is a comment
+ *
+ * @param basic tag is moved to the setter
+ * @param multiline a param comment
+ * can be on multiple lines and can use
+ * {@code @code} or <code>tags</code>
+ * @param predef don't copy this one
+ * @param predefWithJavadoc don't copy this one
+ */
+ @lombok.Builder
+ BuilderConstructorJavadoc(int basic, int multiline, int predef, int predefWithJavadoc) {
+
+ }
+
+ public static class BuilderConstructorJavadocBuilder<T> {
+ public BuilderConstructorJavadocBuilder<T> predef(final int x) {
+ this.predef = x;
+ return this;
+ }
+
+ /**
+ * This javadoc remains untouched.
+ * @param x 1/100 of the thing
+ * @return the updated builder
+ */
+ public BuilderConstructorJavadocBuilder<T> predefWithJavadoc(final int x) {
+ this.predefWithJavadoc = x;
+ return this;
+ }
+ }
+}