mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-14 22:49:33 +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