aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderSingularSets.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-01-30 15:43:41 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-01-30 15:43:41 +0100
commita7bd812893ecb1fa603229d81c924823426ea973 (patch)
tree93ff3584b63d89752c7bf7bc4ed97e0ab567c5d1 /test/transform/resource/after-delombok/BuilderSingularSets.java
parent7efbecfe49af452f117e6a16c969a4b2071e80cd (diff)
downloadlombok-a7bd812893ecb1fa603229d81c924823426ea973.tar.gz
lombok-a7bd812893ecb1fa603229d81c924823426ea973.tar.bz2
lombok-a7bd812893ecb1fa603229d81c924823426ea973.zip
[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.
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderSingularSets.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularSets.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSingularSets.java b/test/transform/resource/after-delombok/BuilderSingularSets.java
index d75c0fbf..8e410897 100644
--- a/test/transform/resource/after-delombok/BuilderSingularSets.java
+++ b/test/transform/resource/after-delombok/BuilderSingularSets.java
@@ -7,6 +7,7 @@ class BuilderSingularSets<T> {
private Set rawSet;
private Set<String> stringSet;
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
BuilderSingularSets(final Set<T> dangerMice, final SortedSet<? extends Number> octopodes, final Set rawSet, final Set<String> stringSet) {
this.dangerMice = dangerMice;
this.octopodes = octopodes;
@@ -14,63 +15,74 @@ class BuilderSingularSets<T> {
this.stringSet = stringSet;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public static class BuilderSingularSetsBuilder<T> {
private java.util.ArrayList<T> dangerMice;
private java.util.ArrayList<Number> octopodes;
private java.util.ArrayList<java.lang.Object> rawSet;
private java.util.ArrayList<String> stringSet;
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
BuilderSingularSetsBuilder() {
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> dangerMouse(final T dangerMouse) {
if (this.dangerMice == null) this.dangerMice = new java.util.ArrayList<T>();
this.dangerMice.add(dangerMouse);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> dangerMice(final java.util.Collection<? extends T> dangerMice) {
if (this.dangerMice == null) this.dangerMice = new java.util.ArrayList<T>();
this.dangerMice.addAll(dangerMice);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> octopus(final Number octopus) {
if (this.octopodes == null) this.octopodes = new java.util.ArrayList<Number>();
this.octopodes.add(octopus);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> octopodes(final java.util.Collection<? extends Number> octopodes) {
if (this.octopodes == null) this.octopodes = new java.util.ArrayList<Number>();
this.octopodes.addAll(octopodes);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> rawSet(final java.lang.Object rawSet) {
if (this.rawSet == null) this.rawSet = new java.util.ArrayList<java.lang.Object>();
this.rawSet.add(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> rawSet(final java.util.Collection<?> rawSet) {
if (this.rawSet == null) this.rawSet = new java.util.ArrayList<java.lang.Object>();
this.rawSet.addAll(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> stringSet(final String stringSet) {
if (this.stringSet == null) this.stringSet = new java.util.ArrayList<String>();
this.stringSet.add(stringSet);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> stringSet(final java.util.Collection<? extends String> stringSet) {
if (this.stringSet == null) this.stringSet = new java.util.ArrayList<String>();
this.stringSet.addAll(stringSet);
return this;
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularSets<T> build() {
java.util.Set<T> dangerMice;
switch (this.dangerMice == null ? 0 : this.dangerMice.size()) {
@@ -118,11 +130,13 @@ class BuilderSingularSets<T> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularSets.BuilderSingularSetsBuilder(dangerMice=" + this.dangerMice + ", octopodes=" + this.octopodes + ", rawSet=" + this.rawSet + ", stringSet=" + this.stringSet + ")";
}
}
@java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public static <T> BuilderSingularSetsBuilder<T> builder() {
return new BuilderSingularSetsBuilder<T>();
}