Pankraz76 commented on code in PR #11284:
URL: https://github.com/apache/maven/pull/11284#discussion_r2438811933


##########
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java:
##########
@@ -509,40 +506,45 @@ public int hashCode() {
             @Override
             public String toString() {
                 try {
-                    StringWriter writer = new StringWriter();
-                    XmlService.write(this, writer);
-                    return writer.toString();
-                } catch (IOException e) {
-                    return toStringObject();
+                    return XmlService.write(this, new 
StringWriter()).toString();

Review Comment:
   no one has time for that to care about, will only change if some tool is 
forcing to do so, thats reality because it will be gone right after merge 
making the whole effort a waste for everybody involved. 



-- 
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]

Reply via email to