Fix [MDEP-931] Replace PrintWriter with Writer in AbstractSerializing Visitor and subclasses#530
Merged
slawekjaranowski merged 3 commits intoapache:masterfrom Aug 10, 2025
Conversation
elharo
requested changes
May 27, 2025
src/main/java/org/apache/maven/plugins/dependency/tree/DOTDependencyNodeVisitor.java
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
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
elharo
requested changes
May 30, 2025
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
Contributor
|
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
Contributor
Author
|
@elharo I droped all the stringwiters and wrote straight onto the writer |
elharo
approved these changes
Jun 30, 2025
| if (node.getParent() == null || node.getParent() == node) { | ||
| writeRootNode(node); | ||
| try { | ||
| if (node.getParent() == null || node.getParent() == node) { |
Contributor
There was a problem hiding this comment.
This is weird. Nodes can be their own parent?
slawekjaranowski
requested changes
Jul 6, 2025
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/GraphmlDependencyNodeVisitor.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
slawekjaranowski
requested changes
Jul 11, 2025
Member
slawekjaranowski
left a comment
There was a problem hiding this comment.
there are more place to use System.lineSeparator
slawekjaranowski
approved these changes
Aug 10, 2025
|
@slawekjaranowski Please assign appropriate label to PR according to the type of change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 verifyto 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.