Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed May 3, 2023
1 parent 8a2f66a commit db9d36e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ Optional<S> after(Stream<T> stream, Function<? super T, S> function) {
}

/** In order to test whether a stream has any element, simply try to find one. */
// XXX: This this rule assumes that any matched `Collector` does not perform any filtering.
static final class StreamIsEmpty<T> {
@BeforeTemplate
boolean before(Stream<T> stream, Collector<? super T, ?, ? extends Collection<?>> collector) {
Expand Down

0 comments on commit db9d36e

Please sign in to comment.