Skip to content

Commit c05d705

Browse files
committed
stleary#748 - javadoc updated for methods.
1 parent 7fe2fd9 commit c05d705

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/json/XMLParserConfiguration.java

+6
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public XMLParserConfiguration (final boolean keepStrings, final String cDataTagN
149149
* xsi:type="integer" as integer, xsi:type="string" as string
150150
* @param forceList <code>new HashSet<String>()</code> to parse the provided tags' values as arrays
151151
* @param maxNestingDepth <code>int</code> to limit the nesting depth
152+
* @param closeEmptyTag <code>boolean</code> to turn on explicit end tag for tag with empty value
152153
*/
153154
private XMLParserConfiguration (final boolean keepStrings, final String cDataTagName,
154155
final boolean convertNilAttributeToNull, final Map<String, XMLXsiTypeConverter<?>> xsiTypeMap, final Set<String> forceList,
@@ -313,6 +314,11 @@ public XMLParserConfiguration withMaxNestingDepth(int maxNestingDepth) {
313314
return super.withMaxNestingDepth(maxNestingDepth);
314315
}
315316

317+
/**
318+
* To enable explicit end tag with empty value.
319+
* @param closeEmptyTag
320+
* @return same instance of configuration with empty tag config updated
321+
*/
316322
public XMLParserConfiguration withCloseEmptyTag(boolean closeEmptyTag){
317323
this.closeEmptyTag = closeEmptyTag;
318324
return this;

0 commit comments

Comments
 (0)