mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 08:15:20 +00:00
[builder] Added clearX() functionality for @Singular annotations for javac. Also docs and changelog.
This commit is contained in:
1 parent
ae4035c9bf
commit
bd78d08417
17 files changed
+245
-6
No files matched your search
@@ -42,6 +42,12 @@ class BuilderSingularNoAuto {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAutoBuilder clearThings() {
|
||||
if (this.things != null) this.things.clear();
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAutoBuilder widget(final String widget) {
|
||||
if (this.widgets == null) this.widgets = new java.util.ArrayList<String>();
|
||||
this.widgets.add(widget);
|
||||
@@ -56,6 +62,12 @@ class BuilderSingularNoAuto {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAutoBuilder clearWidgets() {
|
||||
if (this.widgets != null) this.widgets.clear();
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAutoBuilder items(final String items) {
|
||||
if (this.items == null) this.items = new java.util.ArrayList<String>();
|
||||
this.items.add(items);
|
||||
@@ -70,6 +82,12 @@ class BuilderSingularNoAuto {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAutoBuilder clearItems() {
|
||||
if (this.items != null) this.items.clear();
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public BuilderSingularNoAuto build() {
|
||||
java.util.List<String> things;
|
||||
switch (this.things == null ? 0 : this.things.size()) {
|
||||
|
||||
Reference in new issue
Block a user