Skip to content

Commit

Permalink
Merge pull request stleary#808 from theKnightsOfRohan/fix-build-messages
Browse files Browse the repository at this point in the history
Fix compiler warnings
  • Loading branch information
stleary authored Oct 20, 2023
2 parents 82c8f48 + f074bed commit 7a85b51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/json/ParserConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public boolean isKeepStrings() {
*
* @param newVal
* new value to use for the <code>keepStrings</code> configuration option.
*
* @param <T> the type of the configuration object
*
* @return The existing configuration will not be modified. A new configuration is returned.
*/
public <T extends ParserConfiguration> T withKeepStrings(final boolean newVal) {
Expand All @@ -96,6 +97,8 @@ public int getMaxNestingDepth() {
* Using any negative value as a parameter is equivalent to setting no limit to the nesting depth,
* which means the parses will go as deep as the maximum call stack size allows.
* @param maxNestingDepth the maximum nesting depth allowed to the XML parser
* @param <T> the type of the configuration object
*
* @return The existing configuration will not be modified. A new configuration is returned.
*/
public <T extends ParserConfiguration> T withMaxNestingDepth(int maxNestingDepth) {
Expand Down

0 comments on commit 7a85b51

Please sign in to comment.