Remove unused generic argument from Functions#tryWithResources

This commit is contained in:
Allon Mureinik 2019-02-08 19:24:03 +02:00
parent b08c92e75d
commit 028c9ec70c
1 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ public class Functions {
* @see #tryWithResources(FailableRunnable, FailableRunnable...)
*/
@SafeVarargs
public static <O> void tryWithResources(FailableRunnable<? extends Throwable> pAction,
public static void tryWithResources(FailableRunnable<? extends Throwable> pAction,
FailableConsumer<Throwable,? extends Throwable> pErrorHandler,
FailableRunnable<? extends Throwable>... pResources) {
final FailableConsumer<Throwable,? extends Throwable> errorHandler;
@ -340,7 +340,7 @@ public class Functions {
* @see #tryWithResources(FailableRunnable, FailableConsumer, FailableRunnable...)
*/
@SafeVarargs
public static <O> void tryWithResources(FailableRunnable<? extends Throwable> pAction,
public static void tryWithResources(FailableRunnable<? extends Throwable> pAction,
FailableRunnable<? extends Throwable>... pResources) {
tryWithResources(pAction, null, pResources);
}