[i623] added eclipse code for generating @javax.annotation.Generated, and refactored java impl to reduce DRY violations. -f pretty now includes skipping generation of this annotation, and updated ALL the test cases.

This commit is contained in:
Reinier Zwitserloot committed 2015-01-30 15:43:41 +01:00
1 parent 7efbecfe49
commit a7bd812893
193 files changed
+1199 -613

No files matched your search

@@ -1,23 +1,23 @@
import java.util.List;
@lombok.experimental.Builder class BuilderSimple<T> {
public static @java.lang.SuppressWarnings("all") class BuilderSimpleBuilder<T> {
public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") class BuilderSimpleBuilder<T> {
private int yes;
private List<T> also;
@java.lang.SuppressWarnings("all") BuilderSimpleBuilder() {
@java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSimpleBuilder() {
super();
}
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> yes(final int yes) {
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSimpleBuilder<T> yes(final int yes) {
this.yes = yes;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> also(final List<T> also) {
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSimpleBuilder<T> also(final List<T> also) {
this.also = also;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderSimple<T> build() {
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSimple<T> build() {
return new BuilderSimple<T>(yes, also);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() {
return (((("BuilderSimple.BuilderSimpleBuilder(yes=" + this.yes) + ", also=") + this.also) + ")");
}
}
@@ -25,12 +25,12 @@ import java.util.List;
private final int yes;
private List<T> also;
private int $butNotMe;
@java.lang.SuppressWarnings("all") BuilderSimple(final int yes, final List<T> also) {
@java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSimple(final int yes, final List<T> also) {
super();
this.yes = yes;
this.also = also;
}
public static @java.lang.SuppressWarnings("all") <T>BuilderSimpleBuilder<T> builder() {
public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") <T>BuilderSimpleBuilder<T> builder() {
return new BuilderSimpleBuilder<T>();
}
}