mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-03 12:18:01 +08:00
Merge pull request #943 from GRain-long/patch-1
[bug修复]替换Arrays.asList()
This commit is contained in:
commit
3ded8d7746
@ -278,8 +278,8 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
*/
|
||||
public boolean contains(String group, String value, String... otherValues) {
|
||||
if (ArrayUtil.isNotEmpty(otherValues)) {
|
||||
// 需要测试多个值的情况
|
||||
final List<String> valueList = Arrays.asList(otherValues);
|
||||
// 需要测试多个值的情况
|
||||
final List<String> valueList = new ArrayList<>(Arrays.asList(otherValues));
|
||||
valueList.add(value);
|
||||
return contains(group, valueList);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user