File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/groovy/org/codehaus/mojo/spotbugs Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -527,10 +527,13 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
527527
528528 boolean canGenerate = false
529529 log. debug(' ****** SpotBugsMojo canGenerateReport *******' )
530+
530531 Predicate<Path > containsSource = { Path path ->
531532 String fileName = path. toFile(). name
532- return fileName. endsWith(SpotBugsInfo . CLASS_SUFFIX ) || (nested && (fileName. endsWith(SpotBugsInfo . JAR_SUFFIX ) || fileName. endsWith(SpotBugsInfo . ZIP_SUFFIX )))
533+ return fileName. endsWith(SpotBugsInfo . CLASS_SUFFIX ) ||
534+ (nested && (fileName. endsWith(SpotBugsInfo . JAR_SUFFIX ) || fileName. endsWith(SpotBugsInfo . ZIP_SUFFIX )))
533535 }
536+
534537 if (classFilesDirectory. exists()) {
535538 try {
536539 canGenerate = Files . walk(classFilesDirectory. toPath())
You can’t perform that action at this time.
0 commit comments