arturobernalg commented on code in PR #3589:
URL: https://github.com/apache/maven-surefire/pull/3589#discussion_r4551012341


##########
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/FileReporter.java:
##########
@@ -61,7 +62,7 @@ static File getReportFile(
             File reportsDirectory, String reportEntryName, String 
reportNameSuffix, String fileExtension) {
         String fileName =
                 reportEntryName + (isNotBlank(reportNameSuffix) ? "-" + 
reportNameSuffix : "") + fileExtension;
-        return new File(reportsDirectory, stripIllegalFilenameChars(fileName));
+        return new File(reportsDirectory, 
truncateFileName(stripIllegalFilenameChars(fileName)));

Review Comment:
   Done - added makeFileName() as the single entry point.



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