X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Futil%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Futil%2Fconcurrent%2FMappingCheckedFutureTest.java;h=deeafc1c1b747b3412387a308abb9b4036548cd1;hb=a84f141fe3633d5380ca1fb8b41afc4cd770dcfd;hp=5087f15895f823ae8641f8276b4571c24a8339ec;hpb=82af449e4ef07d80490e79484d0402b81009541e;p=yangtools.git diff --git a/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/MappingCheckedFutureTest.java b/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/MappingCheckedFutureTest.java index 5087f15895..deeafc1c1b 100644 --- a/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/MappingCheckedFutureTest.java +++ b/common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/MappingCheckedFutureTest.java @@ -14,6 +14,7 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.fail; + import com.google.common.util.concurrent.CheckedFuture; import com.google.common.util.concurrent.SettableFuture; import java.util.concurrent.CancellationException; @@ -60,7 +61,7 @@ public class MappingCheckedFutureTest { @Override public Throwable extractWrappedTestEx( final Exception from ) { if (from instanceof ExecutionException ) { - return ((ExecutionException)from).getCause(); + return from.getCause(); } return from; @@ -76,7 +77,7 @@ public class MappingCheckedFutureTest { @Override public Throwable extractWrappedTestEx( final Exception from ) { if (from instanceof ExecutionException ) { - return ((ExecutionException)from).getCause(); + return from.getCause(); } return from;