mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -279,7 +279,7 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
public boolean contains(final String group, final String value, final String... otherValues) {
|
||||
if (ArrayUtil.isNotEmpty(otherValues)) {
|
||||
// 需要测试多个值的情况
|
||||
final List<String> valueList = ListUtil.toList(otherValues);
|
||||
final List<String> valueList = ListUtil.of(otherValues);
|
||||
valueList.add(value);
|
||||
return contains(group, valueList);
|
||||
} else {
|
||||
|
@@ -437,7 +437,7 @@ public class Setting extends AbsSetting implements Map<String, String> {
|
||||
* @return 获得所有分组名
|
||||
*/
|
||||
public List<String> getGroups() {
|
||||
return ListUtil.toList(this.groupedMap.keySet());
|
||||
return ListUtil.of(this.groupedMap.keySet());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user