Skip to content

Commit 118333f

Browse files
committed
fix compatible error
1 parent b25d78d commit 118333f

File tree

1 file changed

+1
-2
lines changed
  • fastjson1-compatible/src/main/java/com/alibaba/fastjson

1 file changed

+1
-2
lines changed

fastjson1-compatible/src/main/java/com/alibaba/fastjson/JSON.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,9 +2169,8 @@ public static JSONArray parseArray(String str) {
21692169
JSONFactory.getDefaultObjectReaderProvider(),
21702170
DEFAULT_PARSER_FEATURE
21712171
);
2172-
JSONReader reader = JSONReader.of(str, context);
21732172

2174-
try {
2173+
try (JSONReader reader = JSONReader.of(str, context)) {
21752174
if (reader.nextIfNullOrEmptyString()) {
21762175
return null;
21772176
}

0 commit comments

Comments
 (0)