Cleanup: remove redundant casts
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / concurrent / MappingCheckedFutureTest.java
index 3d7e40be7d2561bd4eba498b2e6122b8adaf289f..deeafc1c1b747b3412387a308abb9b4036548cd1 100644 (file)
@@ -61,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;
@@ -77,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;