mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 06:14:27 +00:00
Added full test suite for @Accessors, as well as the new rules for whether or not a method is already there so lombok shouldn't generate it (now number of parameters matters), and added generics testing to RequiredArgsConstructor's static constructor feature.
This commit is contained in:
1 parent
7ddafc0fe5
commit
e98d226cfb
11 files changed
+118
-15
No files matched your search
@@ -44,4 +44,18 @@ class NoArgsConstructor1 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public NoArgsConstructor1() {
|
||||
}
|
||||
}
|
||||
class RequiredArgsConstructorStaticNameGenerics<T extends Number> {
|
||||
final T x;
|
||||
String name;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private RequiredArgsConstructorStaticNameGenerics(final T x) {
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static <T extends Number> RequiredArgsConstructorStaticNameGenerics<T> of(final T x) {
|
||||
return new RequiredArgsConstructorStaticNameGenerics<T>(x);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user