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:
Reinier Zwitserloot committed 2012-03-26 23:49:39 +02:00
1 parent 7ddafc0fe5
commit e98d226cfb
11 files changed
+118 -15

No files matched your search

@@ -40,4 +40,15 @@
public @java.lang.SuppressWarnings("all") NoArgsConstructor1() {
super();
}
}
@lombok.RequiredArgsConstructor(staticName = "of") class RequiredArgsConstructorStaticNameGenerics<T extends Number> {
final T x;
String name;
private @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticNameGenerics(final T x) {
super();
this.x = x;
}
public static @java.lang.SuppressWarnings("all") <T extends Number>RequiredArgsConstructorStaticNameGenerics<T> of(final T x) {
return new RequiredArgsConstructorStaticNameGenerics<T>(x);
}
}