Skip to content

Commit

Permalink
Use method reference style for filter call
Browse files Browse the repository at this point in the history
  • Loading branch information
seanabraham committed Jan 25, 2020
1 parent d044eef commit 26649a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void testWebAppProject() {
jibDependenciesTask
.getDependsOn()
.stream()
.filter(it -> it instanceof TaskProvider)
.filter(TaskProvider.class::isInstance)
.map(it -> ((TaskProvider<?>) it).get())
.collect(Collectors.toSet());

Expand Down Expand Up @@ -179,7 +179,7 @@ public void testWebAppProject_bootWar() {
jibDependenciesTask
.getDependsOn()
.stream()
.filter(it -> it instanceof TaskProvider)
.filter(TaskProvider.class::isInstance)
.map(it -> ((TaskProvider<?>) it).get())
.collect(Collectors.toSet());

Expand Down Expand Up @@ -211,7 +211,7 @@ public void testWebAppProject_bootWarDisabled() {
jibDependenciesTask
.getDependsOn()
.stream()
.filter(it -> it instanceof TaskProvider)
.filter(TaskProvider.class::isInstance)
.map(it -> ((TaskProvider<?>) it).get())
.collect(Collectors.toSet());

Expand Down

0 comments on commit 26649a1

Please sign in to comment.