mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 18:55:30 +08:00
refactor: make JSONMLParserConfiguration all-args constructor private, enforcing the builder pattern.
This commit is contained in:
@@ -50,7 +50,7 @@ public class JSONMLParserConfiguration {
|
|||||||
* <code>false</code> to try and convert XML string values into a JSON value.
|
* <code>false</code> to try and convert XML string values into a JSON value.
|
||||||
* @param maxNestingDepth <code>int</code> to limit the nesting depth
|
* @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.keepStrings = keepStrings;
|
||||||
this.maxNestingDepth = maxNestingDepth;
|
this.maxNestingDepth = maxNestingDepth;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user