@@ -402,7 +402,7 @@ private Properties getOverridingProperties(CheckstyleExecutorRequest request) th
402
402
getLogger ().debug ("headerLocation " + headerLocation );
403
403
}
404
404
405
- if (StringUtils . isNotEmpty ( headerLocation )) {
405
+ if (headerLocation != null && ! headerLocation . isEmpty ( )) {
406
406
try {
407
407
File headerFile = licenseLocator .getResourceAsFile (headerLocation , "checkstyle-header.txt" );
408
408
@@ -551,15 +551,15 @@ private void addResourceFilesToProcess(
551
551
if (resourcesDirectory .equals (request .getProject ().getBasedir ())) {
552
552
String resourceIncludes =
553
553
StringUtils .join (resource .getIncludes ().iterator (), "," );
554
- if (StringUtils .isEmpty (includes )) {
554
+ if (includes == null || includes .isEmpty ()) {
555
555
includes = resourceIncludes ;
556
556
} else {
557
557
includes += "," + resourceIncludes ;
558
558
}
559
559
560
560
String resourceExcludes =
561
561
StringUtils .join (resource .getExcludes ().iterator (), "," );
562
- if (StringUtils .isEmpty (excludes )) {
562
+ if (excludes == null || excludes .isEmpty ()) {
563
563
excludes = resourceExcludes ;
564
564
} else {
565
565
excludes += "," + resourceExcludes ;
@@ -594,7 +594,7 @@ private FilterSet getSuppressionsFilterSet(final String suppressionsFilePath) th
594
594
595
595
private String getSuppressionsFilePath (final CheckstyleExecutorRequest request ) throws CheckstyleExecutorException {
596
596
final String suppressionsLocation = request .getSuppressionsLocation ();
597
- if (StringUtils .isEmpty (suppressionsLocation )) {
597
+ if (suppressionsLocation == null || suppressionsLocation .isEmpty ()) {
598
598
return null ;
599
599
}
600
600
0 commit comments