mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
fixed expected test results
This commit is contained in:
1 parent
1e87330f18
commit
65b248ec62
2 files changed
+11
-11
No files matched your search
@@ -39,7 +39,7 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "SuperBuilderWithGenerics.Parent.ParentBuilder(field1=" + this.field1 + ", items=" + this.items + ")";
|
||||
return "SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder(field1=" + this.field1 + ", items=" + this.items + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -82,6 +82,9 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
@lombok.experimental.SuperBuilder
|
||||
public static class Child<A> extends Parent<A> {
|
||||
double field3;
|
||||
public static <A> ChildBuilder<A, ?, ?> builder() {
|
||||
return new ChildBuilderImpl<A>().item("default item");
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static abstract class ChildBuilder<A, C extends Child<A>, B extends ChildBuilder<A, C, B>> extends Parent.ParentBuilder<A, C, B> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -100,7 +103,7 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "SuperBuilderWithGenerics.Child.ChildBuilder(super=" + super.toString() + ", field3=" + this.field3 + ")";
|
||||
return "SuperBuilderWithCustomBuilderMethod.Child.ChildBuilder(super=" + super.toString() + ", field3=" + this.field3 + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -124,9 +127,6 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
super(b);
|
||||
this.field3 = b.field3;
|
||||
}
|
||||
public static <A> ChildBuilder<A, ?, ?> builder() {
|
||||
return new ChildBuilderImpl<A>().item("default item");
|
||||
}
|
||||
}
|
||||
public static void test() {
|
||||
Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build();
|
||||
|
||||
@@ -28,7 +28,7 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
return self();
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (((("SuperBuilderWithGenerics.Parent.ParentBuilder(field1=" + this.field1) + ", items=") + this.items) + ")");
|
||||
return (((("SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder(field1=" + this.field1) + ", items=") + this.items) + ")");
|
||||
}
|
||||
}
|
||||
private static final @java.lang.SuppressWarnings("all") class ParentBuilderImpl<A> extends ParentBuilder<A, Parent<A>, ParentBuilderImpl<A>> {
|
||||
@@ -72,7 +72,7 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
return self();
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (((("SuperBuilderWithGenerics.Child.ChildBuilder(super=" + super.toString()) + ", field3=") + this.field3) + ")");
|
||||
return (((("SuperBuilderWithCustomBuilderMethod.Child.ChildBuilder(super=" + super.toString()) + ", field3=") + this.field3) + ")");
|
||||
}
|
||||
}
|
||||
private static final @java.lang.SuppressWarnings("all") class ChildBuilderImpl<A> extends ChildBuilder<A, Child<A>, ChildBuilderImpl<A>> {
|
||||
@@ -86,15 +86,15 @@ public class SuperBuilderWithCustomBuilderMethod {
|
||||
}
|
||||
}
|
||||
double field3;
|
||||
public static <A>ChildBuilder<A, ?, ?> builder() {
|
||||
return new ChildBuilderImpl<A>().item("default item");
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") Child(final ChildBuilder<A, ?, ?> b) {
|
||||
super(b);
|
||||
this.field3 = b.field3;
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") <A>ChildBuilder<A, ?, ?> builder() {
|
||||
return new ChildBuilderImpl<A>().item("default item");
|
||||
}
|
||||
}
|
||||
public SuperBuilderWithGenerics() {
|
||||
public SuperBuilderWithCustomBuilderMethod() {
|
||||
super();
|
||||
}
|
||||
public static void test() {
|
||||
|
||||
Reference in new issue
Block a user