Skip to content

Commit 8767c83

Browse files
committed
remove list().stream() with asStream()
1 parent 43cc10e commit 8767c83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/sbm-core/src/main/java/org/springframework/sbm/java/migration/actions/RemoveTypeAnnotationAction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public class RemoveTypeAnnotationAction extends AbstractAction {
3131

3232
@Override
3333
public void apply(ProjectContext context) {
34-
context.getProjectJavaSources().list()
35-
.stream()
34+
context.getProjectJavaSources().asStream()
3635
.flatMap(js -> js.getTypes().stream())
3736
.filter(type -> type.hasAnnotation(annotation))
3837
.forEach(type -> type.removeAnnotation(annotation));

0 commit comments

Comments
 (0)