michael-o commented on code in PR #702: URL: https://github.com/apache/maven-surefire/pull/702#discussion_r1440318628
########## maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java: ########## @@ -456,21 +456,13 @@ private static void getTestProblems( } } - boolean hasNestedElements = createOutErrElementsInside & stackTrace != null; - - if (stackTrace != null) { - if (hasNestedElements) { - ppw.startElement("stackTrace"); + if (enableNestedOutErrElements) { + ppw.startElement("stackTrace"); + if (stackTrace != null) { + extraEscapeElementValue(stackTrace, outputStreamWriter, ppw, fw); } + ppw.endElement(); - extraEscapeElementValue(stackTrace, outputStreamWriter, ppw, fw); Review Comment: Vote canceled. ########## maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java: ########## @@ -456,21 +456,13 @@ private static void getTestProblems( } } - boolean hasNestedElements = createOutErrElementsInside & stackTrace != null; - - if (stackTrace != null) { - if (hasNestedElements) { - ppw.startElement("stackTrace"); + if (enableNestedOutErrElements) { + ppw.startElement("stackTrace"); + if (stackTrace != null) { + extraEscapeElementValue(stackTrace, outputStreamWriter, ppw, fw); } + ppw.endElement(); - extraEscapeElementValue(stackTrace, outputStreamWriter, ppw, fw); Review Comment: Vote canceled and repo dropped. -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org