#748 - PR comments - follow convention of configuration builder.

This commit is contained in:
rudrajyoti biswas
2023-10-28 07:36:31 +05:30
parent c05d7058ff
commit 8ec822c575
2 changed files with 27 additions and 9 deletions

View File

@@ -320,8 +320,9 @@ public class XMLParserConfiguration extends ParserConfiguration {
* @return same instance of configuration with empty tag config updated
*/
public XMLParserConfiguration withCloseEmptyTag(boolean closeEmptyTag){
this.closeEmptyTag = closeEmptyTag;
return this;
XMLParserConfiguration clonedConfiguration = this.clone();
clonedConfiguration.closeEmptyTag = closeEmptyTag;
return clonedConfiguration;
}
public boolean isCloseEmptyTag() {