Remove irrelevant details from BuilderJavadoc test case

This commit is contained in:
Emil Lundberg authored and Roel Spilker committed 2019-01-15 00:00:19 +01:00
1 parent 171cbc3b1c
commit 6dfbbe68b4
3 files changed
+25 -63

No files matched your search

@@ -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);
}
}
@@ -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));
}
}
@@ -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;