Skip to content

Commit

Permalink
fix #47: remove no-op stream code
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Mar 5, 2019
1 parent f2183d6 commit 7fe1cad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/com/github/spotbugs/SpotBugsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ protected void configureForSourceSet(final SourceSet sourceSet, SpotBugsTask tas
* all .class files available for analysis.
*/
FileCollection presentClassDirs = sourceSet.getOutput().getClassesDirs().filter(File::exists);
StreamSupport.stream(presentClassDirs.spliterator(), false)
.map(file -> project.fileTree(file))
.forEach(tree -> tree.builtBy(sourceSet.getClassesTaskName()));
return presentClassDirs.getAsFileTree();
});
taskMapping.map("classpath", sourceSet::getRuntimeClasspath);
Expand Down

0 comments on commit 7fe1cad

Please sign in to comment.