From deebd82ecdba39bb0460b0883b13156e1af0e71c Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Thu, 11 May 2017 17:16:36 +0200 Subject: [PATCH] updated javadoc [ci skip] --- .../src/main/java/org/cryptomator/common/Optionals.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } }