We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ade953 commit 4b2a777Copy full SHA for 4b2a777
src/main/java/io/vavr/control/Try.java
@@ -723,7 +723,8 @@ public final <U> Try<U> map(Function<? super T, ? extends U> mapper) {
723
* @param cases A not necessarily exhaustive sequence of cases that will be matched against a cause.
724
* @return A new {@code Try} if this is a {@code Failure}, otherwise this.
725
*/
726
- @SuppressWarnings({ "unchecked", "varargs" })
+ @SuppressWarnings({"varargs"})
727
+ @SafeVarargs
728
public final Try<T> mapFailure(Match.Case<? extends Throwable, ? extends Throwable>... cases) {
729
if (isSuccess()) {
730
return this;
0 commit comments