update version

This commit is contained in:
shaojin.wensj
2019-04-09 15:14:02 +08:00
parent 19a060d41a
commit 87ea3d0655
+6 -2
View File
@@ -706,7 +706,11 @@ public abstract class JSON implements JSONStreamAware, JSONAware {
* @since 1.2.9 back port 1.1.52.android
*/
public <T> T toJavaObject(Class<T> clazz) {
return TypeUtils.cast(this, clazz, ParserConfig.getGlobalInstance());
if (clazz == Map.class) {
return (T) this;
}
return TypeUtils.cast(this, clazz, ParserConfig.getGlobalInstance(), 0);
}
/**
@@ -772,5 +776,5 @@ public abstract class JSON implements JSONStreamAware, JSONAware {
}
}
public final static String VERSION = "1.1.70";
public final static String VERSION = "1.1.71";
}