Skip to content

Commit

Permalink
Fixing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Ekryd committed May 28, 2022
1 parent 2eeaade commit 6ff5948
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sorter/src/main/java/sortpom/output/XmlOutputGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ private NamespaceStack findParentNamespaceStack() {

@Override
protected void writeEmptyElementClose(String qualifiedName) throws IOException {
if (!format.isExpandEmptyElements()) {
if (spaceBeforeCloseEmptyElement) {
// add an extra place before closing tag
writer.write(' ');
}
if (!format.isExpandEmptyElements() && spaceBeforeCloseEmptyElement) {
// add an extra place before closing tag
writer.write(' ');
}
super.writeEmptyElementClose(qualifiedName);
}
Expand Down

0 comments on commit 6ff5948

Please sign in to comment.