mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-20 02:17:52 +00:00
[tests] This seemingly humongous commit is actually nothing: All test-cases now have @Generated annotations where before they did not.
This commit is contained in:
292 files changed
+2545
-432
No files matched your search
@@ -8,6 +8,7 @@ class BuilderWithToBuilder<T> {
|
||||
return x.foo;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
BuilderWithToBuilder(final String one, final String two, final T foo, final List<T> bars) {
|
||||
this.mOne = one;
|
||||
this.mTwo = two;
|
||||
@@ -15,22 +16,29 @@ class BuilderWithToBuilder<T> {
|
||||
this.bars = bars;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static class BuilderWithToBuilderBuilder<T> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private String one;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private String two;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private T foo;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private java.util.ArrayList<T> bars;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
BuilderWithToBuilderBuilder() {
|
||||
}
|
||||
/**
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> one(final String one) {
|
||||
this.one = one;
|
||||
return this;
|
||||
@@ -39,6 +47,7 @@ class BuilderWithToBuilder<T> {
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> two(final String two) {
|
||||
this.two = two;
|
||||
return this;
|
||||
@@ -47,17 +56,20 @@ class BuilderWithToBuilder<T> {
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> foo(final T foo) {
|
||||
this.foo = foo;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> bar(final T bar) {
|
||||
if (this.bars == null) this.bars = new java.util.ArrayList<T>();
|
||||
this.bars.add(bar);
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> bars(final java.util.Collection<? extends T> bars) {
|
||||
if (bars == null) {
|
||||
throw new java.lang.NullPointerException("bars cannot be null");
|
||||
@@ -67,11 +79,13 @@ class BuilderWithToBuilder<T> {
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> clearBars() {
|
||||
if (this.bars != null) this.bars.clear();
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder<T> build() {
|
||||
java.util.List<T> bars;
|
||||
switch (this.bars == null ? 0 : this.bars.size()) {
|
||||
@@ -88,15 +102,18 @@ class BuilderWithToBuilder<T> {
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public java.lang.String toString() {
|
||||
return "BuilderWithToBuilder.BuilderWithToBuilderBuilder(one=" + this.one + ", two=" + this.two + ", foo=" + this.foo + ", bars=" + this.bars + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static <T> BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> builder() {
|
||||
return new BuilderWithToBuilder.BuilderWithToBuilderBuilder<T>();
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> toBuilder() {
|
||||
final T foo = BuilderWithToBuilder.<T>rrr(this);
|
||||
final BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> builder = new BuilderWithToBuilder.BuilderWithToBuilderBuilder<T>().one(this.mOne).two(this.mTwo).foo(foo);
|
||||
@@ -112,20 +129,26 @@ class ConstructorWithToBuilder<T> {
|
||||
public ConstructorWithToBuilder(String mOne, T baz, com.google.common.collect.ImmutableList<T> bars) {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static class ConstructorWithToBuilderBuilder<T> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private String mOne;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private T baz;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private com.google.common.collect.ImmutableList<T> bars;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
ConstructorWithToBuilderBuilder() {
|
||||
}
|
||||
/**
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> mOne(final String mOne) {
|
||||
this.mOne = mOne;
|
||||
return this;
|
||||
@@ -134,6 +157,7 @@ class ConstructorWithToBuilder<T> {
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> baz(final T baz) {
|
||||
this.baz = baz;
|
||||
return this;
|
||||
@@ -142,76 +166,81 @@ class ConstructorWithToBuilder<T> {
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> bars(final com.google.common.collect.ImmutableList<T> bars) {
|
||||
this.bars = bars;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public ConstructorWithToBuilder<T> build() {
|
||||
return new ConstructorWithToBuilder<T>(this.mOne, this.baz, this.bars);
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public java.lang.String toString() {
|
||||
return "ConstructorWithToBuilder.ConstructorWithToBuilderBuilder(mOne=" + this.mOne + ", baz=" + this.baz + ", bars=" + this.bars + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static <T> ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> builder() {
|
||||
return new ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T>();
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> toBuilder() {
|
||||
return new ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T>().mOne(this.mOne).baz(this.foo).bars(this.bars);
|
||||
}
|
||||
}
|
||||
class StaticMethodWithToBuilder<T> {
|
||||
private T foo;
|
||||
|
||||
public StaticMethodWithToBuilder(T foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
public static <T> StaticMethodWithToBuilder<T> of(T foo) {
|
||||
return new StaticMethodWithToBuilder<T>(foo);
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static class StaticMethodWithToBuilderBuilder<T> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private T foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
StaticMethodWithToBuilderBuilder() {
|
||||
}
|
||||
/**
|
||||
* @return {@code this}.
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T> foo(final T foo) {
|
||||
this.foo = foo;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StaticMethodWithToBuilder<T> build() {
|
||||
return StaticMethodWithToBuilder.<T>of(this.foo);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public java.lang.String toString() {
|
||||
return "StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder(foo=" + this.foo + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public static <T> StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T> builder() {
|
||||
return new StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T>();
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T> toBuilder() {
|
||||
return new StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T>().foo(this.foo);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user