Drop unneeded generic type specifiers
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / concurrent / CountingRejectedExecutionHandlerTest.java
index 42c939ab34b6dc4f065faf4ab029d0a74b9c3c86..8c45dc25bb6ceb03582a7386a21b6f36566bdcef 100644 (file)
@@ -46,7 +46,7 @@ public class CountingRejectedExecutionHandlerTest {
         CountDownLatch blockLatch = new CountDownLatch( 1 );
 
         executor = new ThreadPoolExecutor( 1, 1, 0, TimeUnit.SECONDS,
-                ExecutorServiceUtil.offerFailingBlockingQueue( new LinkedBlockingQueue<Runnable>() ) );
+                ExecutorServiceUtil.offerFailingBlockingQueue(new LinkedBlockingQueue<>() ) );
 
         CountingRejectedExecutionHandler countingHandler =
                 CountingRejectedExecutionHandler.newCallerRunsPolicy();
@@ -73,7 +73,7 @@ public class CountingRejectedExecutionHandlerTest {
         CountDownLatch blockLatch = new CountDownLatch( 1 );
 
         executor = new ThreadPoolExecutor( 1, 1, 0, TimeUnit.SECONDS,
-                ExecutorServiceUtil.offerFailingBlockingQueue( new LinkedBlockingQueue<Runnable>() ) );
+                ExecutorServiceUtil.offerFailingBlockingQueue(new LinkedBlockingQueue<>() ) );
 
         CountingRejectedExecutionHandler countingHandler =
                 CountingRejectedExecutionHandler.newAbortPolicy();