Suppress warning for unchecked cast
This commit is contained in:
parent
e9184f88bf
commit
8ec3069d1d
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ final class Nothing<T> implements Maybe<T> {
|
|||
static final Maybe<?> INSTANCE = new Nothing<>();
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public <R> Maybe<R> map(final Function<T, R> f) {
|
||||
return (Maybe<R>) INSTANCE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue