This commit is contained in:
Looly 2020-06-29 16:02:51 +08:00
parent 3ded8d7746
commit 5023657f8c
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
* 【core 】 修复BeanUtil.isEmpty不能忽略static字段问题issue#I1KZI6@Gitee
* 【core 】 修复StrUtil.brief长度问题pr#930@Github
* 【socket 】 修复AioSession构造超时无效问题pr#941@Github
* 【setting】 修复GroupSet.contains错误pr#943@Github
-------------------------------------------------------------------------------------------------------------
## 5.3.8 (2020-06-16)

View File

@ -1,6 +1,7 @@
package cn.hutool.setting;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.CharsetUtil;
@ -13,7 +14,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
@ -279,7 +279,7 @@ 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 = new ArrayList<>(Arrays.asList(otherValues));
final List<String> valueList = ListUtil.toList(otherValues);
valueList.add(value);
return contains(group, valueList);
} else {