in apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/impl/base/XmlWriter.java [570:591]
public IXmlWriter closeElement() throws IOException {
if (elementNames.isEmpty()) {
if (elementsWritten) {
throw new OperationNotAllowedException("Root element has already been closed.");
} else {
throw new OperationNotAllowedException("Close called before an element has been opened.");
}
}
final CharSequence elementName = (CharSequence) elementNames.pop();
if (inElement) {
writer.write('/');
writer.write('>');
} else {
writer.write('<');
writer.write('/');
rawWrite(elementName);
writer.write('>');
}
writer.flush();
inElement = false;
return this;
}