From 9234eab00a421850a20691b04bb18c7cffe4c58a Mon Sep 17 00:00:00 2001 From: Tamas Perger Date: Mon, 13 Feb 2023 01:09:29 +0000 Subject: [PATCH] refactor: make JSONMLParserConfiguration all-args constructor private, enforcing the builder pattern. --- src/main/java/org/json/JSONMLParserConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/json/JSONMLParserConfiguration.java b/src/main/java/org/json/JSONMLParserConfiguration.java index 26f7386..b7162bf 100644 --- a/src/main/java/org/json/JSONMLParserConfiguration.java +++ b/src/main/java/org/json/JSONMLParserConfiguration.java @@ -50,7 +50,7 @@ public class JSONMLParserConfiguration { * false to try and convert XML string values into a JSON value. * @param maxNestingDepth int to limit the nesting depth */ - public JSONMLParserConfiguration(final boolean keepStrings, final int maxNestingDepth) { + private JSONMLParserConfiguration(final boolean keepStrings, final int maxNestingDepth) { this.keepStrings = keepStrings; this.maxNestingDepth = maxNestingDepth; }