Skip to content

Commit f074bed

Browse files
fix(ParserConfiguration): add <T> params to docs
1 parent f346203 commit f074bed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/main/java/org/json/ParserConfiguration.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public boolean isKeepStrings() {
7171
*
7272
* @param newVal
7373
* new value to use for the <code>keepStrings</code> configuration option.
74-
*
74+
* @param <T> the type of the configuration object
75+
*
7576
* @return The existing configuration will not be modified. A new configuration is returned.
7677
*/
7778
public <T extends ParserConfiguration> T withKeepStrings(final boolean newVal) {
@@ -96,6 +97,8 @@ public int getMaxNestingDepth() {
9697
* Using any negative value as a parameter is equivalent to setting no limit to the nesting depth,
9798
* which means the parses will go as deep as the maximum call stack size allows.
9899
* @param maxNestingDepth the maximum nesting depth allowed to the XML parser
100+
* @param <T> the type of the configuration object
101+
*
99102
* @return The existing configuration will not be modified. A new configuration is returned.
100103
*/
101104
public <T extends ParserConfiguration> T withMaxNestingDepth(int maxNestingDepth) {

0 commit comments

Comments
 (0)