diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-12-19 21:26:35 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-06 05:19:37 +0100 |
commit | 889c935ec9f0e45bba1e88b0f256e1f29a734f39 (patch) | |
tree | bfa24b57a405115a491ba8bedc758dc66017698d /test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java | |
parent | 0bb56192304905e2ae5bcee8ba6d72add950d381 (diff) | |
download | lombok-889c935ec9f0e45bba1e88b0f256e1f29a734f39.tar.gz lombok-889c935ec9f0e45bba1e88b0f256e1f29a734f39.tar.bz2 lombok-889c935ec9f0e45bba1e88b0f256e1f29a734f39.zip |
[fixes #2268] make lombok generate qualified types in order to avoid name clashes.
Diffstat (limited to 'test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java')
-rw-r--r-- | test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java b/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java index fc303583..e042b238 100644 --- a/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java +++ b/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java @@ -4,7 +4,7 @@ public class SuperBuilderWithCustomBuilderMethod { A field1;
List<String> items;
@java.lang.SuppressWarnings("all")
- public static abstract class ParentBuilder<A, C extends Parent<A>, B extends ParentBuilder<A, C, B>> {
+ public static abstract class ParentBuilder<A, C extends SuperBuilderWithCustomBuilderMethod.Parent<A>, B extends SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder<A, C, B>> {
@java.lang.SuppressWarnings("all")
private A field1;
@java.lang.SuppressWarnings("all")
@@ -42,23 +42,23 @@ public class SuperBuilderWithCustomBuilderMethod { }
}
@java.lang.SuppressWarnings("all")
- private static final class ParentBuilderImpl<A> extends ParentBuilder<A, Parent<A>, ParentBuilderImpl<A>> {
+ private static final class ParentBuilderImpl<A> extends SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder<A, SuperBuilderWithCustomBuilderMethod.Parent<A>, SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilderImpl<A>> {
@java.lang.SuppressWarnings("all")
private ParentBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- protected ParentBuilderImpl<A> self() {
+ protected SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilderImpl<A> self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- public Parent<A> build() {
- return new Parent<A>(this);
+ public SuperBuilderWithCustomBuilderMethod.Parent<A> build() {
+ return new SuperBuilderWithCustomBuilderMethod.Parent<A>(this);
}
}
@java.lang.SuppressWarnings("all")
- protected Parent(final ParentBuilder<A, ?, ?> b) {
+ protected Parent(final SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder<A, ?, ?> b) {
this.field1 = b.field1;
java.util.List<String> items;
switch (b.items == null ? 0 : b.items.size()) {
@@ -74,8 +74,8 @@ public class SuperBuilderWithCustomBuilderMethod { this.items = items;
}
@java.lang.SuppressWarnings("all")
- public static <A> ParentBuilder<A, ?, ?> builder() {
- return new ParentBuilderImpl<A>();
+ public static <A> SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilder<A, ?, ?> builder() {
+ return new SuperBuilderWithCustomBuilderMethod.Parent.ParentBuilderImpl<A>();
}
}
public static class Child<A> extends Parent<A> {
@@ -84,7 +84,7 @@ public class SuperBuilderWithCustomBuilderMethod { 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> {
+ public static abstract class ChildBuilder<A, C extends SuperBuilderWithCustomBuilderMethod.Child<A>, B extends SuperBuilderWithCustomBuilderMethod.Child.ChildBuilder<A, C, B>> extends Parent.ParentBuilder<A, C, B> {
@java.lang.SuppressWarnings("all")
private double field3;
@java.lang.Override
@@ -105,23 +105,23 @@ public class SuperBuilderWithCustomBuilderMethod { }
}
@java.lang.SuppressWarnings("all")
- private static final class ChildBuilderImpl<A> extends ChildBuilder<A, Child<A>, ChildBuilderImpl<A>> {
+ private static final class ChildBuilderImpl<A> extends SuperBuilderWithCustomBuilderMethod.Child.ChildBuilder<A, SuperBuilderWithCustomBuilderMethod.Child<A>, SuperBuilderWithCustomBuilderMethod.Child.ChildBuilderImpl<A>> {
@java.lang.SuppressWarnings("all")
private ChildBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- protected ChildBuilderImpl<A> self() {
+ protected SuperBuilderWithCustomBuilderMethod.Child.ChildBuilderImpl<A> self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- public Child<A> build() {
- return new Child<A>(this);
+ public SuperBuilderWithCustomBuilderMethod.Child<A> build() {
+ return new SuperBuilderWithCustomBuilderMethod.Child<A>(this);
}
}
@java.lang.SuppressWarnings("all")
- protected Child(final ChildBuilder<A, ?, ?> b) {
+ protected Child(final SuperBuilderWithCustomBuilderMethod.Child.ChildBuilder<A, ?, ?> b) {
super(b);
this.field3 = b.field3;
}
|