Skip to content

Commit e40d933

Browse files
mechkoclaude
andcommitted
stleary#1063: add comment to expected-exception catch block (SonarCloud java:S108)
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fce83c9 commit e40d933

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/test/java/org/json/junit/JSONObjectTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,7 @@ public void getBigIntegerHugeExponentReturnsDefault() {
13851385
jo.getBigInteger("x");
13861386
fail("getBigInteger should throw for huge exponent");
13871387
} catch (JSONException expected) {
1388+
// expected: integer part exceeds DEFAULT_MAX_NUMBER_LENGTH digits
13881389
}
13891390

13901391
// String path: value put() as a String, exercised via objectToBigInteger's

0 commit comments

Comments
 (0)