Claudenw commented on code in PR #233:
URL: https://github.com/apache/creadur-rat/pull/233#discussion_r1564522497
##########
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/impl/base/XmlWriter.java:
##########
@@ -514,6 +526,17 @@ private void writeAttributeContent(CharSequence content)
throws IOException {
writeEscaped(content, true);
}
+ private void prepareForData() throws IOException {
+ if (elementNames.isEmpty()) {
+ if (elementsWritten) {
+ throw new OperationNotAllowedException("Root element has
already been closed.");
+ }
+ throw new OperationNotAllowedException("An element must be opened
before content can be written.");
+ }
+ if (inElement) {
+ writer.write('>');
+ }
+ }
/**
* Writes content. Calling this method will automatically Note that this
method
Review Comment:
I think all overridden methods should rely on the interface for
documentation. :(
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]