mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-07 14:18:05 +08:00
modify Arrays.asList
replace Arrays.asList with new ArrayList
This commit is contained in:
parent
1bc2fe138e
commit
a7fe161a57
@ -279,7 +279,7 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
|||||||
public boolean contains(String group, String value, String... otherValues) {
|
public boolean contains(String group, String value, String... otherValues) {
|
||||||
if (ArrayUtil.isNotEmpty(otherValues)) {
|
if (ArrayUtil.isNotEmpty(otherValues)) {
|
||||||
// 需要测试多个值的情况
|
// 需要测试多个值的情况
|
||||||
final List<String> valueList = Arrays.asList(otherValues);
|
final List<String> valueList = new ArrayList<>(Arrays.asList(otherValues));
|
||||||
valueList.add(value);
|
valueList.add(value);
|
||||||
return contains(group, valueList);
|
return contains(group, valueList);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user