Potato is lightweight.
Potato does not need extra synchronization.
This commit is contained in:
parent
61580991b1
commit
64d5d3cb78
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ public class Potato implements Tuber {
|
|||
}
|
||||
|
||||
public void addCondiments(String... names) {
|
||||
synchronized (this.condiments) {
|
||||
for (String condimentName : names) this.condiments.add(new Condiment(condimentName));
|
||||
for (String condimentName : names) {
|
||||
this.condiments.add(new Condiment(condimentName));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue