Generalize return type

This commit is contained in:
Julian Broudy
2025-02-17 10:48:24 +01:00
committed by Stephan Schroevers
parent 57575648a4
commit be7f9e182e

View File

@@ -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);
}