diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2020-02-11 14:18:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 14:18:49 +0100 |
commit | 39c2903c885f52cb99e36f0a0c896bcca2bc794f (patch) | |
tree | f3940f21ccd9dc4b1f9e1cfcde33d144b72d2ba5 /test/transform/resource/after-delombok | |
parent | c4223d1dcdf27917aa07b887774ea35f218d7b1b (diff) | |
parent | 0ab433b41a6d2afa446d7e46204531c1efa606e2 (diff) | |
download | lombok-39c2903c885f52cb99e36f0a0c896bcca2bc794f.tar.gz lombok-39c2903c885f52cb99e36f0a0c896bcca2bc794f.tar.bz2 lombok-39c2903c885f52cb99e36f0a0c896bcca2bc794f.zip |
Merge pull request #2362 from janrieke/superBuilderNestedGenericTypes
SuperBuilder javac fix for nested generic types
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java b/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java new file mode 100644 index 00000000..ad738c01 --- /dev/null +++ b/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java @@ -0,0 +1,41 @@ +public class SuperBuilderNestedGenericTypes {
+ public static abstract class Generic<T extends Generic<?>> {
+ @java.lang.SuppressWarnings("all")
+ public static abstract class GenericBuilder<T extends Generic<?>, C extends SuperBuilderNestedGenericTypes.Generic<T>, B extends SuperBuilderNestedGenericTypes.Generic.GenericBuilder<T, C, B>> {
+ @java.lang.SuppressWarnings("all")
+ protected abstract B self();
+ @java.lang.SuppressWarnings("all")
+ public abstract C build();
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "SuperBuilderNestedGenericTypes.Generic.GenericBuilder()";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ protected Generic(final SuperBuilderNestedGenericTypes.Generic.GenericBuilder<T, ?, ?> b) {
+ }
+ }
+ public static abstract class NestedGeneric<T extends OtherGeneric<?>> extends Generic<NestedGeneric<? extends OtherGeneric<?>>> {
+ @java.lang.SuppressWarnings("all")
+ public static abstract class NestedGenericBuilder<T extends OtherGeneric<?>, C extends SuperBuilderNestedGenericTypes.NestedGeneric<T>, B extends SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder<T, C, B>> extends Generic.GenericBuilder<NestedGeneric<? extends OtherGeneric<?>>, C, B> {
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ protected abstract B self();
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public abstract C build();
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder(super=" + super.toString() + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ protected NestedGeneric(final SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder<T, ?, ?> b) {
+ super(b);
+ }
+ }
+ public interface OtherGeneric<T> {
+ }
+}
|