Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Apr 25, 2024
1 parent c364624 commit 75a9626
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -191,7 +191,8 @@ private Stream<T> test1(Stream<T> stream) {

private Stream<T> test2(Stream<T> stream) {
Preconditions.checkNotNull(ref);
// BUG: Diagnostic contains: dereferenced expression ref is @Nullable
// no error since we propagate nullability facts to stream callbacks, which
// in sane code are invoked soon after the stream is
return stream.filter(s -> ref.equals(s));
}
}
Expand Down

0 comments on commit 75a9626

Please sign in to comment.