Skip to content

Commit

Permalink
Drop redundant suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 authored and rickie committed Dec 30, 2022
1 parent 6819854 commit ccbe3fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ private AssertJOptionalRules() {}

static final class AssertThatOptional<T> {
@BeforeTemplate
@SuppressWarnings("NullAway")
ObjectAssert<T> before(Optional<T> optional) {
return assertThat(optional.orElseThrow());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,7 @@ Mono<T> before(Mono<T> mono) {
return mono.switchIfEmpty(Mono.empty());
}

// XXX: Review the suppression once NullAway has better support for generics. Keep an eye on
// https://github.com/uber/NullAway/issues?q=is%3Aopen+generics.
@BeforeTemplate
@SuppressWarnings("NullAway" /* False positive. */)
Mono<@Nullable Void> before2(Mono<@Nullable Void> mono) {
return mono.then();
}
Expand Down

0 comments on commit ccbe3fd

Please sign in to comment.