mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Generalize return type
This commit is contained in:
committed by
Stephan Schroevers
parent
57575648a4
commit
be7f9e182e
@@ -105,7 +105,7 @@ final class AssertJOptionalRules {
|
||||
|
||||
static final class OptionalAssertHasValue<T> {
|
||||
@BeforeTemplate
|
||||
ObjectAssert<T> before(Optional<T> optional, T value) {
|
||||
AbstractAssert<?, ?> before(Optional<T> optional, T value) {
|
||||
return assertThat(optional.orElseThrow()).isEqualTo(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user