Fix warnings in tests
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / databroker / actors / dds / AbstractClientHistoryTest.java
index bd170ee34fbe31b4dabd75a54214d9ab7c096c78..45c0dbb9a520a2d8301ec32eb78764ae36245862 100644 (file)
@@ -144,7 +144,6 @@ public abstract class AbstractClientHistoryTest<T extends AbstractClientHistory>
     }
 
     @Test
     }
 
     @Test
-    @SuppressWarnings("unchecked")
     public void testStartReconnect() throws Exception {
         // cookie and shard are the same
         final Long cookie = 0L;
     public void testStartReconnect() throws Exception {
         // cookie and shard are the same
         final Long cookie = 0L;
@@ -152,7 +151,7 @@ public abstract class AbstractClientHistoryTest<T extends AbstractClientHistory>
 
         final ShardBackendInfo info = new ShardBackendInfo(clientActorContext().self(), 0L, ABIVersion.current(),
                 SHARD_NAME, UnsignedLong.ZERO, Optional.of(tree), 10);
 
         final ShardBackendInfo info = new ShardBackendInfo(clientActorContext().self(), 0L, ABIVersion.current(),
                 SHARD_NAME, UnsignedLong.ZERO, Optional.of(tree), 10);
-        final ConnectedClientConnection newConn = AccessClientUtil.createConnectedConnection(
+        final ConnectedClientConnection<ShardBackendInfo> newConn = AccessClientUtil.createConnectedConnection(
                 clientActorContext(), cookie, info);
         object().createSnapshotProxy(TRANSACTION_ID, shard);
 
                 clientActorContext(), cookie, info);
         object().createSnapshotProxy(TRANSACTION_ID, shard);
 
@@ -161,7 +160,6 @@ public abstract class AbstractClientHistoryTest<T extends AbstractClientHistory>
     }
 
     @Test
     }
 
     @Test
-    @SuppressWarnings("unchecked")
     public void testStartReconnectMissingOldProxy() throws Exception {
         // cookie and shard are different
         final Long cookie = 1L;
     public void testStartReconnectMissingOldProxy() throws Exception {
         // cookie and shard are different
         final Long cookie = 1L;
@@ -169,7 +167,7 @@ public abstract class AbstractClientHistoryTest<T extends AbstractClientHistory>
 
         final ShardBackendInfo info = new ShardBackendInfo(clientActorContext().self(), 0L, ABIVersion.current(),
                 SHARD_NAME, UnsignedLong.ZERO, Optional.of(tree), 10);
 
         final ShardBackendInfo info = new ShardBackendInfo(clientActorContext().self(), 0L, ABIVersion.current(),
                 SHARD_NAME, UnsignedLong.ZERO, Optional.of(tree), 10);
-        final ConnectedClientConnection newConn = AccessClientUtil.createConnectedConnection(
+        final ConnectedClientConnection<ShardBackendInfo> newConn = AccessClientUtil.createConnectedConnection(
                 clientActorContext(), cookie, info);
         object().createSnapshotProxy(TRANSACTION_ID, shard);
 
                 clientActorContext(), cookie, info);
         object().createSnapshotProxy(TRANSACTION_ID, shard);