mirror of
https://gitee.com/smallc/blade-tool.git
synced 2026-07-10 18:39:44 +08:00
✨ 优化 JsonUtil
This commit is contained in:
parent
aabed6e7c5
commit
afaa79d257
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,6 +17,7 @@ Thumbs.db
|
|||
*.class
|
||||
|
||||
# idea #
|
||||
!.idea/icon.png
|
||||
.idea
|
||||
*.iml
|
||||
|
||||
|
|
|
|||
BIN
.idea/icon.png
Normal file
BIN
.idea/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
|
|
@ -814,8 +814,7 @@ public class JsonUtil {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
try {
|
||||
return getInstance().readValue(content, new TypeReference<List<Map<String, Object>>>() {
|
||||
});
|
||||
return getInstance().readValue(content, getListType(Map.class));
|
||||
} catch (IOException e) {
|
||||
throw Exceptions.unchecked(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user