You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jmock/files/2.5.1-invokeAll-invokeAny.p...

31 lines
1.6 KiB

diff --git a/jmock-2.5.1/src/org/jmock/lib/concurrent/DeterministicScheduler.java b/jmock-2.5.1/src/org/jmock/lib/concurrent/DeterministicScheduler.java
index 6dbc020..0dce41c 100644
--- a/jmock-2.5.1/src/org/jmock/lib/concurrent/DeterministicScheduler.java
+++ b/jmock-2.5.1/src/org/jmock/lib/concurrent/DeterministicScheduler.java
@@ -110,21 +110,21 @@ public class DeterministicScheduler implements ScheduledExecutorService {
throw blockingOperationsNotSupported();
}
- public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks) throws InterruptedException {
+ public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException {
throw blockingOperationsNotSupported();
}
- public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {
+ public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {
throw blockingOperationsNotSupported();
}
- public <T> T invokeAny(Collection<Callable<T>> tasks)
+ public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
throws InterruptedException, ExecutionException
{
throw blockingOperationsNotSupported();
}
- public <T> T invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit)
+ public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
throws InterruptedException, ExecutionException, TimeoutException
{
throw blockingOperationsNotSupported();