mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 10:08:32 +00:00
Remove unused generic argument from Functions#tryWithResources
This commit is contained in:
parent
b08c92e75d
commit
028c9ec70c
@ -278,7 +278,7 @@ public static <O1,O2,T extends Throwable> boolean test(FailableBiPredicate<O1,O2
|
||||
* @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 static <O> void tryWithResources(FailableRunnable<? extends Throwable> pA
|
||||
* @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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user