Fix warnings in tests
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / persisted / ShardManagerSnapshot.java
index 93846758ec9eb5848e58773d64e395e3f9c90a03..9dc95c058a1bbcf92d2adbd76f2daefcc1faeaa6 100644 (file)
@@ -47,21 +47,21 @@ public class ShardManagerSnapshot implements Serializable {
         }
 
         @Override
-        public void writeExternal(ObjectOutput out) throws IOException {
+        public void writeExternal(final ObjectOutput out) throws IOException {
             out.writeInt(snapshot.shardList.size());
             for (String shard: snapshot.shardList) {
                 out.writeObject(shard);
             }
 
             out.writeInt(snapshot.prefixShardConfiguration.size());
-            for (Map.Entry prefixShardConfigEntry : snapshot.prefixShardConfiguration.entrySet()) {
+            for (Map.Entry<?, ?> prefixShardConfigEntry : snapshot.prefixShardConfiguration.entrySet()) {
                 out.writeObject(prefixShardConfigEntry.getKey());
                 out.writeObject(prefixShardConfigEntry.getValue());
             }
         }
 
         @Override
-        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+        public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
             int size = in.readInt();
             List<String> shardList = new ArrayList<>(size);
             for (int i = 0; i < size; i++) {