refactor: make JSONMLParserConfiguration all-args constructor private, enforcing the builder pattern.

This commit is contained in:
Tamas Perger 2023-02-13 01:09:29 +00:00
parent 72f4c3e646
commit 9234eab00a

View File

@ -50,7 +50,7 @@ public class JSONMLParserConfiguration {
* <code>false</code> to try and convert XML string values into a JSON value.
* @param maxNestingDepth <code>int</code> 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;
}