mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +00:00
1 parent
273d8fc53c
commit
60a9799c24
1 file changed
+4
-4
@@ -25,7 +25,7 @@ public class BuilderExample {
|
||||
private boolean created$set;
|
||||
private String name;
|
||||
private int age;
|
||||
private Set<String> occupations;
|
||||
private java.util.ArrayList<String> occupations;
|
||||
|
||||
BuilderExampleBuilder() {
|
||||
}
|
||||
@@ -48,7 +48,7 @@ public class BuilderExample {
|
||||
|
||||
public BuilderExampleBuilder occupation(String occupation) {
|
||||
if (this.occupations == null) {
|
||||
this.occupations = new Set<String>();
|
||||
this.occupations = new java.util.ArrayList<String>();
|
||||
}
|
||||
|
||||
this.occupations.add(occupation);
|
||||
@@ -57,7 +57,7 @@ public class BuilderExample {
|
||||
|
||||
public BuilderExampleBuilder occupations(Collection<? extends String> occupations) {
|
||||
if (this.occupations == null) {
|
||||
this.occupations = new Set<String>();
|
||||
this.occupations = new java.util.ArrayList<String>();
|
||||
}
|
||||
|
||||
this.occupations.addAll(occupations);
|
||||
@@ -83,4 +83,4 @@ public class BuilderExample {
|
||||
return "BuilderExample.BuilderExampleBuilder(created = " + this.created + ", name = " + this.name + ", age = " + this.age + ", occupations = " + this.occupations + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user