mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
chore(#887): JSONParserConfiguration strictMode true flag cleanup
This commit is contained in:
parent
48dfeb84b0
commit
a8ab79e3f3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user