Skip to content

Commit

Permalink
解析器不止是Json类型,其它类型均可,例如:xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen2018 committed Nov 10, 2020
1 parent e1622a0 commit b9757fa
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ public JxHelper(JsonLibraryType jsonLibraryType) {

if (gsonClass == null && fastJsonClass == null) {
//报异常
if(jsonLibraryType == JsonLibraryType.Gson) {
throw new JsonNoCanFormatException("无法进行json映射,无可用的Json解析器");
}else {
throw new JsonNoCanFormatException("无法进行json映射,无可用的Json解析器");
}
throw new JsonNoCanFormatException("无法进行json映射,无可用的Json解析器");
} else {
try {
if (gsonClass != null) {
Expand Down

0 comments on commit b9757fa

Please sign in to comment.