Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Feb 6, 2025
1 parent 536c362 commit 9561d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/esaulpaugh/headlong/abi/ABIJSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ private static JsonReader strict(Reader reader) {
final JsonReader jsonReader = new JsonReader(reader);
if (!fallback) {
try {
jsonReader.setStrictness(Strictness.STRICT);
jsonReader.setNestingLimit(50);
jsonReader.setStrictness(Strictness.STRICT); // since 2.11.0
jsonReader.setNestingLimit(50); // since 2.12.0 (allow setStrictness to succeed before trying)
return jsonReader;
} catch (LinkageError le) { // e.g. at runtime, gson is below 2.11.0
} catch (LinkageError le) { // e.g. runtime gson doesn't have one of the above methods
fallback = true;
}
}
Expand Down

0 comments on commit 9561d96

Please sign in to comment.