mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2026-01-16 05:36:34 +00:00
Potato is lightweight.
Potato does not need extra synchronization.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user