AMQ-6602 - fix java 7 incompatibility

This commit is contained in:
Christopher L. Shannon (cshannon) 2017-02-24 06:36:57 -05:00
parent 1f53b124bc
commit 0cf64783d2
1 changed files with 1 additions and 1 deletions

View File

@ -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() {