mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 19:15:20 +00:00
AMQ-6602 - fix java 7 incompatibility
(cherry picked from commit 0cf64783d2cbae684f6d2d3e6c46801070f7fd77)
This commit is contained in:
parent
789f82b34b
commit
e575157093
@ -43,7 +43,7 @@ public class TaskRunnerFactoryTest {
|
||||
final ExecutorService service = Executors.newFixedThreadPool(10);
|
||||
final CountDownLatch latch1 = new CountDownLatch(1);
|
||||
final CountDownLatch latch2 = new CountDownLatch(10);
|
||||
final List<TaskRunner> runners = Collections.synchronizedList(new ArrayList<>(10));
|
||||
final List<TaskRunner> runners = Collections.<TaskRunner>synchronizedList(new ArrayList<TaskRunner>(10));
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
service.execute(new Runnable() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user