We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25d78d commit 118333fCopy full SHA for 118333f
fastjson1-compatible/src/main/java/com/alibaba/fastjson/JSON.java
@@ -2169,9 +2169,8 @@ public static JSONArray parseArray(String str) {
2169
JSONFactory.getDefaultObjectReaderProvider(),
2170
DEFAULT_PARSER_FEATURE
2171
);
2172
- JSONReader reader = JSONReader.of(str, context);
2173
2174
- try {
+ try (JSONReader reader = JSONReader.of(str, context)) {
2175
if (reader.nextIfNullOrEmptyString()) {
2176
return null;
2177
}
0 commit comments