Performance: Call to 'Arrays.asList()' with too few arguments

This commit is contained in:
TacoTheDank 2020-11-19 15:15:54 -05:00
parent 17b0b997eb
commit a35050b2e7

View file

@ -720,7 +720,7 @@ public class SearchPhrase {
if (result.containsKey(currRegionName)) { if (result.containsKey(currRegionName)) {
result.get(currRegionName).add(r); result.get(currRegionName).add(r);
} else { } else {
result.put(currRegionName, new ArrayList<>(Arrays.asList(r))); result.put(currRegionName, new ArrayList<>(Collections.singletonList(r)));
} }
it.remove(); it.remove();
} }