Potato is lightweight.

Potato does not need extra synchronization.
This commit is contained in:
Pierre C 2015-07-10 13:10:03 -07:00
parent 61580991b1
commit 64d5d3cb78

View file

@ -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));
}
}