From 815755b9594d1577d282dc47120e68fe0aa8c4f1 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 29 Mar 2019 18:09:01 +0100 Subject: rename ambiguous method --- src/main/java/org/pacien/lemonad/attempt/Attempt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/pacien/lemonad') diff --git a/src/main/java/org/pacien/lemonad/attempt/Attempt.java b/src/main/java/org/pacien/lemonad/attempt/Attempt.java index fc437ad..e36ac4b 100644 --- a/src/main/java/org/pacien/lemonad/attempt/Attempt.java +++ b/src/main/java/org/pacien/lemonad/attempt/Attempt.java @@ -84,7 +84,7 @@ public interface Attempt { * @param mapper a function producing an {@link Attempt}, called with the current error if this {@link Attempt} is a failure. * @return this {@link Attempt} if it is a success, or the alternative {@link Attempt} retrieved from the supplier otherwise. */ - default Attempt mapFailure(@NonNull Function> mapper) { + default Attempt mapError(@NonNull Function> mapper) { //noinspection unchecked return (Attempt) (isFailure() ? mapper.apply(getError()) : this); } -- cgit v1.2.3