commit
212808a854
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ public class Potato implements Tuber {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addCondiments(String... names) {
|
public void addCondiments(String... names) {
|
||||||
synchronized (this.condiments) {
|
for (String condimentName : names) {
|
||||||
for (String condimentName : names) this.condiments.add(new Condiment(condimentName));
|
this.condiments.add(new Condiment(condimentName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue