X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Futil%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Futil%2Fconcurrent%2FCommonTestUtils.java;h=c4cc4baa074fe8ba5956aa64cabf3a6a676b287b;hb=refs%2Fchanges%2F09%2F42509%2F1;hp=60c56a452c7337cebb9c057839b1a4c1bb8bdf4b;hpb=ead44a5baba1149998c1bbc369f1ddbd1e8dc7a5;p=yangtools.git diff --git a/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/CommonTestUtils.java b/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/CommonTestUtils.java index 60c56a452c..c4cc4baa07 100644 --- a/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/CommonTestUtils.java +++ b/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/CommonTestUtils.java @@ -8,11 +8,11 @@ package org.opendaylight.yangtools.util.concurrent; -import java.util.concurrent.Callable; -import java.util.concurrent.CountDownLatch; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.ListeningExecutorService; import com.google.common.util.concurrent.Uninterruptibles; +import java.util.concurrent.Callable; +import java.util.concurrent.CountDownLatch; /** * Some common test utilities. @@ -24,7 +24,7 @@ public class CommonTestUtils { public interface Invoker { ListenableFuture invokeExecutor( ListeningExecutorService executor, CountDownLatch blockingLatch ); - }; + } public static final Invoker SUBMIT_CALLABLE = new Invoker() { @Override @@ -33,7 +33,7 @@ public class CommonTestUtils { return executor.submit( new Callable() { @Override public Void call() throws Exception { - if( blockingLatch != null ) { + if (blockingLatch != null ) { Uninterruptibles.awaitUninterruptibly( blockingLatch ); } return null; @@ -49,7 +49,7 @@ public class CommonTestUtils { return executor.submit( new Runnable() { @Override public void run() { - if( blockingLatch != null ) { + if (blockingLatch != null ) { Uninterruptibles.awaitUninterruptibly( blockingLatch ); } } @@ -64,7 +64,7 @@ public class CommonTestUtils { return executor.submit( new Runnable() { @Override public void run() { - if( blockingLatch != null ) { + if (blockingLatch != null ) { Uninterruptibles.awaitUninterruptibly( blockingLatch ); } }