diff --git a/main/commons/src/main/java/org/cryptomator/common/Optionals.java b/main/commons/src/main/java/org/cryptomator/common/Optionals.java index c2abb9206..d5b5cac4d 100644 --- a/main/commons/src/main/java/org/cryptomator/common/Optionals.java +++ b/main/commons/src/main/java/org/cryptomator/common/Optionals.java @@ -20,11 +20,11 @@ public final class Optionals { * * @param the type of the input to the function * @param the type of the result of the function - * @param optionalFunction An input function {@code Function>} - * @return A {@code Function}, that may throw an NoSuchElementException, if the original function returns an empty optional. + * @param function An {@code Optional}-bearing input function {@code Function>} + * @return A {@code Function}, that may throw a NoSuchElementException, if the original function returns an empty optional. */ - public static Function unwrap(Function> optionalFunction) { - return t -> optionalFunction.apply(t).get(); + public static Function unwrap(Function> function) { + return t -> function.apply(t).get(); } }