We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af59637 commit 8621643Copy full SHA for 8621643
src/main/java/com/pokegoapi/api/inventory/PokeBank.java
@@ -24,12 +24,14 @@
24
import lombok.Getter;
25
26
import java.util.ArrayList;
27
+import java.util.Collection;
28
+import java.util.Collections;
29
import java.util.List;
30
31
32
public class PokeBank {
33
@Getter
- List<Pokemon> pokemons = new ArrayList<Pokemon>();
34
+ List<Pokemon> pokemons = Collections.synchronizedList(new ArrayList<Pokemon>());
35
36
PokemonGo instance;
37
0 commit comments