mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -194,7 +194,7 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
super.clear();
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
reader = IoUtil.getReader(settingStream, charset);
|
||||
reader = IoUtil.toReader(settingStream, charset);
|
||||
// 分组
|
||||
String group;
|
||||
LinkedHashSet<String> valueSet = null;
|
||||
|
@@ -103,7 +103,7 @@ public class SettingLoader {
|
||||
this.groupedMap.clear();
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
reader = IoUtil.getReader(settingStream, this.charset);
|
||||
reader = IoUtil.toReader(settingStream, this.charset);
|
||||
// 分组
|
||||
String group = null;
|
||||
|
||||
|
@@ -50,7 +50,7 @@ public class YamlUtil {
|
||||
* @return 加载的内容,默认Map
|
||||
*/
|
||||
public static <T> T load(final InputStream in, final Class<T> type) {
|
||||
return load(IoUtil.getBomReader(in), type);
|
||||
return load(IoUtil.toBomReader(in), type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user