41
41
import org .apache .maven .reporting .AbstractMavenReport ;
42
42
import org .apache .maven .reporting .MavenReportException ;
43
43
import org .codehaus .plexus .util .FileUtils ;
44
- import org .codehaus .plexus .util .StringUtils ;
45
44
46
45
/**
47
46
* Base class for the PMD reports.
@@ -390,7 +389,7 @@ private boolean isDirectoryExcluded(Collection<File> excludedRootFiles, File sou
390
389
/**
391
390
* Gets the comma separated list of effective include patterns.
392
391
*
393
- * @return The comma separated list of effective include patterns, never <code>null</code>.
392
+ * @return the comma separated list of effective include patterns, never <code>null</code>.
394
393
*/
395
394
private String getIncludes () {
396
395
Collection <String > patterns = new LinkedHashSet <>();
@@ -400,20 +399,20 @@ private String getIncludes() {
400
399
if (patterns .isEmpty ()) {
401
400
patterns .add ("**/*.java" );
402
401
}
403
- return StringUtils .join (patterns . iterator (), "," );
402
+ return String .join ("," , patterns );
404
403
}
405
404
406
405
/**
407
406
* Gets the comma separated list of effective exclude patterns.
408
407
*
409
- * @return The comma separated list of effective exclude patterns, never <code>null</code>.
408
+ * @return the comma separated list of effective exclude patterns, never <code>null</code>.
410
409
*/
411
410
private String getExcludes () {
412
411
Collection <String > patterns = new LinkedHashSet <>(FileUtils .getDefaultExcludesAsList ());
413
412
if (excludes != null ) {
414
413
patterns .addAll (excludes );
415
414
}
416
- return StringUtils .join (patterns . iterator (), "," );
415
+ return String .join ("," , patterns );
417
416
}
418
417
419
418
protected boolean isXml () {
0 commit comments