Skip to content

Commit

Permalink
remove paralleism from default methods (#8906)
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher authored Mar 8, 2023
1 parent d3bce80 commit 959ea40
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public interface AnnotationScanner {
default @NonNull Stream<Class<?>> scan(@NonNull Class<? extends Annotation> annotation, @NonNull Collection<String> packages) {
Objects.requireNonNull(annotation, "Annotation type cannot be null");
Objects.requireNonNull(packages, "Packages to scan cannot be null");
return scan(annotation.getName(), packages.parallelStream());
return scan(annotation.getName(), packages.stream());
}

/**
Expand All @@ -134,7 +134,6 @@ public interface AnnotationScanner {
Objects.requireNonNull(packages, "Packages to scan cannot be null");

return packages
.parallel()
.flatMap(pkg -> scan(annotation, pkg));
}

Expand Down

0 comments on commit 959ea40

Please sign in to comment.