aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorEmil Lundberg <emil@yubico.com>2019-01-08 13:05:59 +0100
committerRoel Spilker <r.spilker@gmail.com>2019-01-15 00:00:19 +0100
commit6dfbbe68b47356e24eb95e795fa764caca5e605e (patch)
treee4cebd17907f5f706cb9ad2c3ec3a2d9567d6af1 /test/transform/resource
parent171cbc3b1c29e1b35cc2df0b9ef141aa731b2751 (diff)
downloadlombok-6dfbbe68b47356e24eb95e795fa764caca5e605e.tar.gz
lombok-6dfbbe68b47356e24eb95e795fa764caca5e605e.tar.bz2
lombok-6dfbbe68b47356e24eb95e795fa764caca5e605e.zip
Remove irrelevant details from BuilderJavadoc test case
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/BuilderJavadoc.java43
-rw-r--r--test/transform/resource/after-ecj/BuilderJavadoc.java27
-rw-r--r--test/transform/resource/before/BuilderJavadoc.java18
3 files changed, 25 insertions, 63 deletions
diff --git a/test/transform/resource/after-delombok/BuilderJavadoc.java b/test/transform/resource/after-delombok/BuilderJavadoc.java
index e33602c5..196ced3b 100644
--- a/test/transform/resource/after-delombok/BuilderJavadoc.java
+++ b/test/transform/resource/after-delombok/BuilderJavadoc.java
@@ -1,16 +1,12 @@
import java.util.List;
class BuilderJavadoc<T> {
/**
- * Will not get a setter on the builder.
- */
- private final int noshow = 0;
- /**
- * Yes, yes gets a setter.
- * @see #also
+ * basic gets only a builder setter.
+ * @see #getsetwith
*
* @return tag is removed from the setter.
*/
- private final int yes;
+ private final int basic;
/**
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
*/
@@ -27,22 +23,15 @@ class BuilderJavadoc<T> {
* @return tag remains on the field.
*/
private final int predefWithJavadoc;
- private List<T> also;
- /**
- * But this one doesn't.
- */
- private int $butNotMe;
public static class BuilderJavadocBuilder<T> {
@java.lang.SuppressWarnings("all")
- private int yes;
+ private int basic;
@java.lang.SuppressWarnings("all")
private int getsetwith;
@java.lang.SuppressWarnings("all")
private int predef;
@java.lang.SuppressWarnings("all")
private int predefWithJavadoc;
- @java.lang.SuppressWarnings("all")
- private List<T> also;
public BuilderJavadocBuilder<T> predef(final int x) {
this.predef = x * 10;
return this;
@@ -60,13 +49,13 @@ class BuilderJavadoc<T> {
BuilderJavadocBuilder() {
}
/**
- * Yes, yes gets a setter.
- * @see #also
+ * basic gets only a builder setter.
+ * @see #getsetwith
* @param tag is moved to the setter.
*/
@java.lang.SuppressWarnings("all")
- public BuilderJavadocBuilder<T> yes(final int yes) {
- this.yes = yes;
+ public BuilderJavadocBuilder<T> basic(final int basic) {
+ this.basic = basic;
return this;
}
/**
@@ -79,27 +68,21 @@ class BuilderJavadoc<T> {
return this;
}
@java.lang.SuppressWarnings("all")
- public BuilderJavadocBuilder<T> also(final List<T> also) {
- this.also = also;
- return this;
- }
- @java.lang.SuppressWarnings("all")
public BuilderJavadoc<T> build() {
- return new BuilderJavadoc<T>(yes, getsetwith, predef, predefWithJavadoc, also);
+ return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
- return "BuilderJavadoc.BuilderJavadocBuilder(yes=" + this.yes + ", getsetwith=" + this.getsetwith + ", predef=" + this.predef + ", predefWithJavadoc=" + this.predefWithJavadoc + ", also=" + this.also + ")";
+ return "BuilderJavadoc.BuilderJavadocBuilder(basic=" + this.basic + ", getsetwith=" + this.getsetwith + ", predef=" + this.predef + ", predefWithJavadoc=" + this.predefWithJavadoc + ")";
}
}
@java.lang.SuppressWarnings("all")
- BuilderJavadoc(final int yes, final int getsetwith, final int predef, final int predefWithJavadoc, final List<T> also) {
- this.yes = yes;
+ 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;
- this.also = also;
}
@java.lang.SuppressWarnings("all")
public static <T> BuilderJavadocBuilder<T> builder() {
@@ -128,6 +111,6 @@ class BuilderJavadoc<T> {
*/
@java.lang.SuppressWarnings("all")
public BuilderJavadoc<T> withGetsetwith(final int getsetwith) {
- return this.getsetwith == getsetwith ? this : new BuilderJavadoc<T>(this.yes, getsetwith, this.predef, this.predefWithJavadoc, this.also);
+ return this.getsetwith == getsetwith ? this : new BuilderJavadoc<T>(this.basic, getsetwith, this.predef, this.predefWithJavadoc);
}
}
diff --git a/test/transform/resource/after-ecj/BuilderJavadoc.java b/test/transform/resource/after-ecj/BuilderJavadoc.java
index 8cc487eb..b7403835 100644
--- a/test/transform/resource/after-ecj/BuilderJavadoc.java
+++ b/test/transform/resource/after-ecj/BuilderJavadoc.java
@@ -1,11 +1,10 @@
import java.util.List;
@lombok.Builder class BuilderJavadoc<T> {
public static class BuilderJavadocBuilder<T> {
- private @java.lang.SuppressWarnings("all") int yes;
+ 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;
- private @java.lang.SuppressWarnings("all") List<T> also;
public BuilderJavadocBuilder<T> predef(final int x) {
this.predef = (x * 10);
return this;
@@ -17,39 +16,31 @@ import java.util.List;
@java.lang.SuppressWarnings("all") BuilderJavadocBuilder() {
super();
}
- public @java.lang.SuppressWarnings("all") BuilderJavadocBuilder<T> yes(final int yes) {
- this.yes = yes;
+ 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") BuilderJavadocBuilder<T> also(final List<T> also) {
- this.also = also;
- return this;
- }
public @java.lang.SuppressWarnings("all") BuilderJavadoc<T> build() {
- return new BuilderJavadoc<T>(yes, getsetwith, predef, predefWithJavadoc, also);
+ return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
- return (((((((((("BuilderJavadoc.BuilderJavadocBuilder(yes=" + this.yes) + ", getsetwith=") + this.getsetwith) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ", also=") + this.also) + ")");
+ return (((((((("BuilderJavadoc.BuilderJavadocBuilder(basic=" + this.basic) + ", getsetwith=") + this.getsetwith) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ")");
}
}
- private final int noshow = 0;
- private final int yes;
+ private final int basic;
private @lombok.Getter @lombok.Setter @lombok.experimental.Wither int getsetwith;
private final int predef;
private final int predefWithJavadoc;
- private List<T> also;
- private int $butNotMe;
- @java.lang.SuppressWarnings("all") BuilderJavadoc(final int yes, final int getsetwith, final int predef, final int predefWithJavadoc, final List<T> also) {
+ @java.lang.SuppressWarnings("all") BuilderJavadoc(final int basic, final int getsetwith, final int predef, final int predefWithJavadoc) {
super();
- this.yes = yes;
+ this.basic = basic;
this.getsetwith = getsetwith;
this.predef = predef;
this.predefWithJavadoc = predefWithJavadoc;
- this.also = also;
}
public static @java.lang.SuppressWarnings("all") <T>BuilderJavadocBuilder<T> builder() {
return new BuilderJavadocBuilder<T>();
@@ -61,6 +52,6 @@ import java.util.List;
this.getsetwith = getsetwith;
}
public @java.lang.SuppressWarnings("all") BuilderJavadoc<T> withGetsetwith(final int getsetwith) {
- return ((this.getsetwith == getsetwith) ? this : new BuilderJavadoc<T>(this.yes, getsetwith, this.predef, this.predefWithJavadoc, this.also));
+ return ((this.getsetwith == getsetwith) ? this : new BuilderJavadoc<T>(this.basic, getsetwith, this.predef, this.predefWithJavadoc));
}
}
diff --git a/test/transform/resource/before/BuilderJavadoc.java b/test/transform/resource/before/BuilderJavadoc.java
index 93b8bedf..c2e0a6e0 100644
--- a/test/transform/resource/before/BuilderJavadoc.java
+++ b/test/transform/resource/before/BuilderJavadoc.java
@@ -3,17 +3,12 @@ import java.util.List;
@lombok.Builder
class BuilderJavadoc<T> {
/**
- * Will not get a setter on the builder.
- */
- private final int noshow = 0;
-
- /**
- * Yes, yes gets a setter.
- * @see #also
+ * 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 yes;
+ private final int basic;
/**
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
@@ -39,13 +34,6 @@ class BuilderJavadoc<T> {
*/
private final int predefWithJavadoc;
- private List<T> also;
-
- /**
- * But this one doesn't.
- */
- private int $butNotMe;
-
public static class BuilderJavadocBuilder<T> {
public BuilderJavadocBuilder<T> predef(final int x) {
this.predef = x * 10;