Skip to content

Commit a8ab79e

Browse files
committed
chore(#887): JSONParserConfiguration strictMode true flag cleanup
1 parent 48dfeb8 commit a8ab79e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/main/java/org/json/JSONParserConfiguration.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ public class JSONParserConfiguration extends ParserConfiguration {
2828
*/
2929
public JSONParserConfiguration() {
3030
super();
31-
// TODO: Force strict mode to true, unless otherwise set by .withStrictMode()
32-
// This will be replaced with a later change that executes test runs with and without strict mode.
33-
// This change will cause many of the unit tests to fail.
34-
this.strictMode = true;
3531
this.overwriteDuplicateKey = false;
3632
}
3733

src/test/java/org/json/junit/JSONTokenerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ public void testValid() {
9898
checkValid(" [] ",JSONArray.class);
9999
checkValid("[1,2]",JSONArray.class);
100100
checkValid("\n\n[1,2]\n\n",JSONArray.class);
101-
// TODO: strictMode regression, needs to be fixed
102-
// checkValid("1 2", String.class);
101+
checkValid("1 2", String.class);
103102
}
104103

105104
@Test

0 commit comments

Comments
 (0)