Conversation
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/XmlWriter.java
Fixed
Show fixed
Hide fixed
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/XmlWriter.java
Fixed
Show fixed
Hide fixed
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/XmlWriter.java
Fixed
Show fixed
Hide fixed
ottlinger
left a comment
There was a problem hiding this comment.
Thanks, LGTM - all sonarcloud warnings seem reasonable and should be applied before merging.
Besides I was just wonderung if more tests are needed to cover more of the corner cases that XmlWriter handles.
Thanks for all your work!
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/XmlWriter.java
Show resolved
Hide resolved
| @Override | ||
| public void close() throws IOException { | ||
| closeDocument(); | ||
| if (appendable instanceof Closeable) { |
There was a problem hiding this comment.
if (appendable instanceof Closeable) {
Sonarcloud's suggestion seems reasonable to me .... would you mind changing?
| import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
|
||
|
|
||
| public class XmlWriterTest { |
There was a problem hiding this comment.
While scanning the changes in the writer package I wondered if there's enough code coverage for the special cases handled in XmlWriter or if more tests could be added (I only look at the code from the GitHub UI and not in an IDE).
There was a problem hiding this comment.
XMLWriter has 95.2% code coverage. I think we handle most of the cases.
apache-rat-tools/src/main/java/org/apache/rat/tools/xsd/XsdGenerator.java
Show resolved
Hide resolved
|
@ottlinger I think this PR is ready now. |
|
@Claudenw feel free to merge this PR if the buikld goes through. Thanks. |
|



Update the XmlWriter to write to any appendable.
Move the XMLChar class to its own file and use the implementation for Xerces-j to pick up fixes.
Closes RAT-539