优化 JsonUtil

This commit is contained in:
卢春梦 2024-08-09 11:32:46 +08:00
parent aabed6e7c5
commit afaa79d257
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ Thumbs.db
*.class
# idea #
!.idea/icon.png
.idea
*.iml

BIN
.idea/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -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);
}