This commit is contained in:
Looly
2022-04-30 19:45:32 +08:00
parent d368fb1949
commit dea8344d91
25 changed files with 255 additions and 140 deletions

View File

@@ -84,10 +84,10 @@ public class YamlUtil {
* @param isCloseReader 加载完毕后是否关闭{@link Reader}
* @return 加载的内容默认Map
*/
@SuppressWarnings("unchecked")
public static <T> T load(Reader reader, Class<T> type, boolean isCloseReader) {
Assert.notNull(reader, "Reader must be not null !");
if (null == type) {
//noinspection unchecked
type = (Class<T>) Object.class;
}