Performance: Call to 'Arrays.asList()' with too few arguments
This commit is contained in:
parent
17b0b997eb
commit
a35050b2e7
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue