mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package cn.hutool.setting;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.net.url.URLUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
@@ -183,10 +182,9 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
* 加载设置文件。 此方法不会关闭流对象
|
||||
*
|
||||
* @param settingStream 文件流
|
||||
* @return 加载成功与否
|
||||
* @throws IOException IO异常
|
||||
*/
|
||||
public boolean load(final InputStream settingStream) throws IOException {
|
||||
public void load(final InputStream settingStream) throws IOException {
|
||||
super.clear();
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
@@ -233,7 +231,6 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
} finally {
|
||||
IoUtil.close(reader);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -96,10 +96,9 @@ public class SettingLoader {
|
||||
* 加载设置文件。 此方法不会关闭流对象
|
||||
*
|
||||
* @param settingStream 文件流
|
||||
* @return 加载成功与否
|
||||
* @throws IOException IO异常
|
||||
*/
|
||||
synchronized public boolean load(final InputStream settingStream) throws IOException {
|
||||
synchronized public void load(final InputStream settingStream) throws IOException {
|
||||
this.groupedMap.clear();
|
||||
LineReader reader = null;
|
||||
try {
|
||||
@@ -141,7 +140,6 @@ public class SettingLoader {
|
||||
} finally {
|
||||
IoUtil.close(reader);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user