Skip to content

Commit 9234eab

Browse files
refactor: make JSONMLParserConfiguration all-args constructor private, enforcing the builder pattern.
1 parent 72f4c3e commit 9234eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/json/JSONMLParserConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public JSONMLParserConfiguration() {
5050
* <code>false</code> to try and convert XML string values into a JSON value.
5151
* @param maxNestingDepth <code>int</code> to limit the nesting depth
5252
*/
53-
public JSONMLParserConfiguration(final boolean keepStrings, final int maxNestingDepth) {
53+
private JSONMLParserConfiguration(final boolean keepStrings, final int maxNestingDepth) {
5454
this.keepStrings = keepStrings;
5555
this.maxNestingDepth = maxNestingDepth;
5656
}

0 commit comments

Comments
 (0)