diff options
author | Le Beier <ble@indeed.com> | 2020-08-03 08:47:46 +0800 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-08-27 23:38:23 +0200 |
commit | 273d8fc53ccbcf0e5e9b3a74489e8ebf8220b546 (patch) | |
tree | 5280c326857b91f263f229dce79a165f524527e7 | |
parent | 9f6c2203c9fd277256ccd9012d7075e7244b7fb6 (diff) | |
download | lombok-273d8fc53ccbcf0e5e9b3a74489e8ebf8220b546.tar.gz lombok-273d8fc53ccbcf0e5e9b3a74489e8ebf8220b546.tar.bz2 lombok-273d8fc53ccbcf0e5e9b3a74489e8ebf8220b546.zip |
changed arraylist to set
-rw-r--r-- | website/usageExamples/BuilderExample_post.jpage | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/website/usageExamples/BuilderExample_post.jpage b/website/usageExamples/BuilderExample_post.jpage index 24d326b3..638e9e14 100644 --- a/website/usageExamples/BuilderExample_post.jpage +++ b/website/usageExamples/BuilderExample_post.jpage @@ -25,7 +25,7 @@ public class BuilderExample { private boolean created$set; private String name; private int age; - private java.util.ArrayList<String> occupations; + private Set<String> occupations; BuilderExampleBuilder() { } @@ -48,7 +48,7 @@ public class BuilderExample { public BuilderExampleBuilder occupation(String occupation) { if (this.occupations == null) { - this.occupations = new java.util.ArrayList<String>(); + this.occupations = new Set<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 java.util.ArrayList<String>(); + this.occupations = new Set<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 + ")"; } } -}
\ No newline at end of file +} |