mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2025-10-01 22:30:14 +02: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) {
|
||||
synchronized (this.condiments) {
|
||||
for (String condimentName : names) this.condiments.add(new Condiment(condimentName));
|
||||
for (String condimentName : names) {
|
||||
this.condiments.add(new Condiment(condimentName));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user