mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 18:15:59 +00:00
Fix for issue 396: Static constructors generated for classes with type parameters did not work in javac.
This commit is contained in:
1 parent
a382c21d46
commit
dd18f63ee5
5 files changed
+104
-12
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user