elharo commented on code in PR #768:
URL: https://github.com/apache/maven-surefire/pull/768#discussion_r1731624164
##########
surefire-api/src/main/java/org/apache/maven/surefire/api/report/LegacyPojoStackTraceWriter.java:
##########
@@ -54,7 +52,7 @@ public String writeTraceToString() {
if (isMultiLineExceptionMessage(t)) {
// SUREFIRE-986
String exc = t.getClass().getName() + ": ";
- if (StringUtils.startsWith(builder, exc)) {
+ if (builder.toString().startsWith(exc)) {
Review Comment:
I think you could use `builder.indexOf(exc) == 0` here to avoid creating the
string
--
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]