Skip to content

Commit

Permalink
fix compatible error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 11, 2025
1 parent b25d78d commit 118333f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2169,9 +2169,8 @@ public static JSONArray parseArray(String str) {
JSONFactory.getDefaultObjectReaderProvider(),
DEFAULT_PARSER_FEATURE
);
JSONReader reader = JSONReader.of(str, context);

try {
try (JSONReader reader = JSONReader.of(str, context)) {
if (reader.nextIfNullOrEmptyString()) {
return null;
}
Expand Down

0 comments on commit 118333f

Please sign in to comment.