diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/transform/resource/after-delombok/Constructors.java | 14 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/Constructors.java | 11 | ||||
-rw-r--r-- | test/transform/resource/before/Constructors.java | 4 |
3 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/Constructors.java b/test/transform/resource/after-delombok/Constructors.java index db48b6b8..d4633dbc 100644 --- a/test/transform/resource/after-delombok/Constructors.java +++ b/test/transform/resource/after-delombok/Constructors.java @@ -58,4 +58,18 @@ class RequiredArgsConstructorStaticNameGenerics<T extends Number> { public static <T extends Number> RequiredArgsConstructorStaticNameGenerics<T> of(final T x) { return new RequiredArgsConstructorStaticNameGenerics<T>(x); } +} +class RequiredArgsConstructorStaticNameGenerics2<T extends Number> { + final Class<T> x; + String name; + + @java.lang.SuppressWarnings("all") + private RequiredArgsConstructorStaticNameGenerics2(final Class<T> x) { + this.x = x; + } + + @java.lang.SuppressWarnings("all") + public static <T extends Number> RequiredArgsConstructorStaticNameGenerics2<T> of(final Class<T> x) { + return new RequiredArgsConstructorStaticNameGenerics2<T>(x); + } }
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/Constructors.java b/test/transform/resource/after-ecj/Constructors.java index e6dd8a21..e994702f 100644 --- a/test/transform/resource/after-ecj/Constructors.java +++ b/test/transform/resource/after-ecj/Constructors.java @@ -51,4 +51,15 @@ public static @java.lang.SuppressWarnings("all") <T extends Number>RequiredArgsConstructorStaticNameGenerics<T> of(final T x) { return new RequiredArgsConstructorStaticNameGenerics<T>(x); } +} +@lombok.RequiredArgsConstructor(staticName = "of") class RequiredArgsConstructorStaticNameGenerics2<T extends Number> { + final Class<T> x; + String name; + private @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticNameGenerics2(final Class<T> x) { + super(); + this.x = x; + } + public static @java.lang.SuppressWarnings("all") <T extends Number>RequiredArgsConstructorStaticNameGenerics2<T> of(final Class<T> x) { + return new RequiredArgsConstructorStaticNameGenerics2<T>(x); + } }
\ No newline at end of file diff --git a/test/transform/resource/before/Constructors.java b/test/transform/resource/before/Constructors.java index 272fa850..d3ed3504 100644 --- a/test/transform/resource/before/Constructors.java +++ b/test/transform/resource/before/Constructors.java @@ -22,3 +22,7 @@ final T x; String name; } +@lombok.RequiredArgsConstructor(staticName="of") class RequiredArgsConstructorStaticNameGenerics2<T extends Number> { + final Class<T> x; + String name; +} |