-
Notifications
You must be signed in to change notification settings - Fork 182
Fix [MDEP-931] Replace PrintWriter with Writer in AbstractSerializing Visitor and subclasses #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/GraphmlDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/GraphmlDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/JsonDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/TGFDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/TGFDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/TGFDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/GraphmlDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/JsonDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/tree/JsonDependencyNodeVisitor.java
Outdated
Show resolved
Hide resolved
CI failing on a known flaky test:
|
Resolve #1439 |
…Visitor and subclasses Replace PrintWriter with Writer in AbstractSerializing Visitor and subclasses Only use writer
018c0d1
to
da1730c
Compare
@elharo I droped all the stringwiters and wrote straight onto the writer |
if (node.getParent() == null || node.getParent() == node) { | ||
writeRootNode(node); | ||
try { | ||
if (node.getParent() == null || node.getParent() == node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird. Nodes can be their own parent?
try { | ||
if (node.getParent() == null || node.getParent() == node) { | ||
// dump edges on last node endVisit | ||
writer.write("#\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a system line separator
Following this checklist to help us incorporate your
contribution quickly and easily:
Fixes https://issues.apache.org/jira/browse/MDEP-931
cc @elharo
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verify
to make sure basic checks pass.A more thorough check will be performed on your pull request automatically.
mvn -Prun-its verify
).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.