Skip to content

Commit 6ff5948

Browse files
author
Björn Ekryd
committed
Fixing warning
1 parent 2eeaade commit 6ff5948

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sorter/src/main/java/sortpom/output/XmlOutputGenerator.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ private NamespaceStack findParentNamespaceStack() {
110110

111111
@Override
112112
protected void writeEmptyElementClose(String qualifiedName) throws IOException {
113-
if (!format.isExpandEmptyElements()) {
114-
if (spaceBeforeCloseEmptyElement) {
115-
// add an extra place before closing tag
116-
writer.write(' ');
117-
}
113+
if (!format.isExpandEmptyElements() && spaceBeforeCloseEmptyElement) {
114+
// add an extra place before closing tag
115+
writer.write(' ');
118116
}
119117
super.writeEmptyElementClose(qualifiedName);
120118
}

0 commit comments

Comments
 (0)