diff --git a/activemq-client/src/test/java/org/apache/activemq/thread/TaskRunnerFactoryTest.java b/activemq-client/src/test/java/org/apache/activemq/thread/TaskRunnerFactoryTest.java index 273c0ed44c..026083be17 100644 --- a/activemq-client/src/test/java/org/apache/activemq/thread/TaskRunnerFactoryTest.java +++ b/activemq-client/src/test/java/org/apache/activemq/thread/TaskRunnerFactoryTest.java @@ -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 runners = Collections.synchronizedList(new ArrayList<>(10)); + final List runners = Collections.synchronizedList(new ArrayList(10)); for (int i = 0; i < 10; i++) { service.execute(new Runnable() {