aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2022-06-17 23:30:25 +0200
committerJan Rieke <rieke@subshell.com>2022-06-17 23:30:25 +0200
commit0fcb446265348753c2b448f98f2ad020d6d07d13 (patch)
treea2fd967105b02f61fbf36249fded352b39e91e17 /test/transform
parentab36d2f8797ca34f3eefeb2008233985a856f0e4 (diff)
downloadlombok-0fcb446265348753c2b448f98f2ad020d6d07d13.tar.gz
lombok-0fcb446265348753c2b448f98f2ad020d6d07d13.tar.bz2
lombok-0fcb446265348753c2b448f98f2ad020d6d07d13.zip
(SuperBuilder) fix javac type params on conflicting names
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/SuperBuilderNameClashes.java10
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderNameClashes.java10
-rw-r--r--test/transform/resource/before/SuperBuilderNameClashes.java7
3 files changed, 20 insertions, 7 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderNameClashes.java b/test/transform/resource/after-delombok/SuperBuilderNameClashes.java
index 2a2d0899..37372e41 100644
--- a/test/transform/resource/after-delombok/SuperBuilderNameClashes.java
+++ b/test/transform/resource/after-delombok/SuperBuilderNameClashes.java
@@ -125,13 +125,17 @@ public class SuperBuilderNameClashes {
}
}
interface B2 {
+ interface B4<X> {
+ }
+ }
+ interface B3<Y> {
}
- public static class ExtendsClauseCollision extends B implements B2 {
+ public static class ExtendsClauseCollision extends B implements B2.B4<Object>, B3<Object> {
@java.lang.SuppressWarnings("all")
- public static abstract class ExtendsClauseCollisionBuilder<C extends SuperBuilderNameClashes.ExtendsClauseCollision, B3 extends SuperBuilderNameClashes.ExtendsClauseCollision.ExtendsClauseCollisionBuilder<C, B3>> extends B.BBuilder<C, B3> {
+ public static abstract class ExtendsClauseCollisionBuilder<C extends SuperBuilderNameClashes.ExtendsClauseCollision, B4 extends SuperBuilderNameClashes.ExtendsClauseCollision.ExtendsClauseCollisionBuilder<C, B4>> extends B.BBuilder<C, B4> {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- protected abstract B3 self();
+ protected abstract B4 self();
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
diff --git a/test/transform/resource/after-ecj/SuperBuilderNameClashes.java b/test/transform/resource/after-ecj/SuperBuilderNameClashes.java
index 8ad62aa2..6d1b82e2 100644
--- a/test/transform/resource/after-ecj/SuperBuilderNameClashes.java
+++ b/test/transform/resource/after-ecj/SuperBuilderNameClashes.java
@@ -102,13 +102,17 @@ public class SuperBuilderNameClashes {
}
}
interface B2 {
+ interface B4<X> {
+ }
+ }
+ interface B3<Y> {
}
- public static @lombok.experimental.SuperBuilder class ExtendsClauseCollision extends B implements B2 {
- public static abstract @java.lang.SuppressWarnings("all") class ExtendsClauseCollisionBuilder<C extends SuperBuilderNameClashes.ExtendsClauseCollision, B3 extends SuperBuilderNameClashes.ExtendsClauseCollision.ExtendsClauseCollisionBuilder<C, B3>> extends B.BBuilder<C, B3> {
+ public static @lombok.experimental.SuperBuilder class ExtendsClauseCollision extends B implements B2.B4<Object>, B3<Object> {
+ public static abstract @java.lang.SuppressWarnings("all") class ExtendsClauseCollisionBuilder<C extends SuperBuilderNameClashes.ExtendsClauseCollision, B4 extends SuperBuilderNameClashes.ExtendsClauseCollision.ExtendsClauseCollisionBuilder<C, B4>> extends B.BBuilder<C, B4> {
public ExtendsClauseCollisionBuilder() {
super();
}
- protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B3 self();
+ protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B4 self();
public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build();
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("SuperBuilderNameClashes.ExtendsClauseCollision.ExtendsClauseCollisionBuilder(super=" + super.toString()) + ")");
diff --git a/test/transform/resource/before/SuperBuilderNameClashes.java b/test/transform/resource/before/SuperBuilderNameClashes.java
index a8e719bf..ec3afbb8 100644
--- a/test/transform/resource/before/SuperBuilderNameClashes.java
+++ b/test/transform/resource/before/SuperBuilderNameClashes.java
@@ -16,9 +16,14 @@ public class SuperBuilderNameClashes {
}
interface B2 {
+ interface B4<X> {
+ }
+ }
+
+ interface B3<Y> {
}
@lombok.experimental.SuperBuilder
- public static class ExtendsClauseCollision extends B implements B2 {
+ public static class ExtendsClauseCollision extends B implements B2.B4<Object>, B3<Object> {
}
}