From 4a662316f757e9ad7769b5224e685b6d329112fa Mon Sep 17 00:00:00 2001 From: marilynel Date: Sun, 16 Mar 2025 10:33:14 -0700 Subject: [PATCH 1/2] edited pom.xml for mvn testing with strict mode --- pom.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/pom.xml b/pom.xml index fe4f770..80c9b89 100644 --- a/pom.xml +++ b/pom.xml @@ -200,4 +200,55 @@ + + + test-strict-mode + + + + com.google.code.maven-replacer-plugin + replacer + 1.5.3 + + + + enable-strict-mode + process-sources + + replace + + + src/main/java/org/json/JSONParserConfiguration.java + + + // this.strictMode = true; + this.strictMode = true; + + + + + + + restore-original + test + + replace + + + src/main/java/org/json/JSONParserConfiguration.java + + + this.strictMode = true; + // this.strictMode = true; + + + + + + + + + + + From 76ee4312b325b0cf88afc32f8d67827ef72a00cd Mon Sep 17 00:00:00 2001 From: marilynel Date: Sun, 16 Mar 2025 10:36:24 -0700 Subject: [PATCH 2/2] readme edit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 336f60c..206afbb 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,12 @@ gradlew clean build test gradlew testWithStrictMode ``` +*Optional* Execute the test suite in strict mode with Maven: + +```shell +mvn test -P test-strict-mode +``` + # Notes For more information, please see [NOTES.md](https://github.com/stleary/JSON-java/blob/master/docs/NOTES.md)