aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderSingularNoAuto.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-11-16 23:07:39 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-11-16 23:21:58 +0100
commitae4035c9bf117e8f823512c5fd040bd57bc3742e (patch)
tree4efedbfab0500c5d86cd36eaf591d9ecb2e2ca24 /test/transform/resource/after-ecj/BuilderSingularNoAuto.java
parentb8a222006da0a535134c5e7e94282550bfe745b6 (diff)
downloadlombok-ae4035c9bf117e8f823512c5fd040bd57bc3742e.tar.gz
lombok-ae4035c9bf117e8f823512c5fd040bd57bc3742e.tar.bz2
lombok-ae4035c9bf117e8f823512c5fd040bd57bc3742e.zip
[builder] Added clearX() functionality for `@Singular` annotations for ecj
Diffstat (limited to 'test/transform/resource/after-ecj/BuilderSingularNoAuto.java')
-rw-r--r--test/transform/resource/after-ecj/BuilderSingularNoAuto.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/BuilderSingularNoAuto.java b/test/transform/resource/after-ecj/BuilderSingularNoAuto.java
index d5b06f1e..1b79538c 100644
--- a/test/transform/resource/after-ecj/BuilderSingularNoAuto.java
+++ b/test/transform/resource/after-ecj/BuilderSingularNoAuto.java
@@ -20,6 +20,11 @@ import lombok.Singular;
this.things.addAll(things);
return this;
}
+ public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearThings() {
+ if ((this.things != null))
+ this.things.clear();
+ return this;
+ }
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder widget(String widget) {
if ((this.widgets == null))
this.widgets = new java.util.ArrayList<String>();
@@ -32,6 +37,11 @@ import lombok.Singular;
this.widgets.addAll(widgets);
return this;
}
+ public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearWidgets() {
+ if ((this.widgets != null))
+ this.widgets.clear();
+ return this;
+ }
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder items(String items) {
if ((this.items == null))
this.items = new java.util.ArrayList<String>();
@@ -44,6 +54,11 @@ import lombok.Singular;
this.items.addAll(items);
return this;
}
+ public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearItems() {
+ if ((this.items != null))
+ this.items.clear();
+ return this;
+ }
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAuto build() {
java.util.List<String> things;
switch (((this.things == null) ? 0 : this.things.size())) {