chore(#887): JSONParserConfiguration strictMode true flag cleanup

This commit is contained in:
rikkarth 2024-05-19 14:41:16 +01:00
parent 48dfeb84b0
commit a8ab79e3f3
No known key found for this signature in database
GPG Key ID: 2E9DB1869E683CD1
2 changed files with 1 additions and 6 deletions

View File

@ -28,10 +28,6 @@ public class JSONParserConfiguration extends ParserConfiguration {
*/
public JSONParserConfiguration() {
super();
// TODO: Force strict mode to true, unless otherwise set by .withStrictMode()
// This will be replaced with a later change that executes test runs with and without strict mode.
// This change will cause many of the unit tests to fail.
this.strictMode = true;
this.overwriteDuplicateKey = false;
}

View File

@ -98,8 +98,7 @@ public class JSONTokenerTest {
checkValid(" [] ",JSONArray.class);
checkValid("[1,2]",JSONArray.class);
checkValid("\n\n[1,2]\n\n",JSONArray.class);
// TODO: strictMode regression, needs to be fixed
// checkValid("1 2", String.class);
checkValid("1 2", String.class);
}
@Test