Deprecate InstallSnapshot protobuff messages
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / SerializationUtils.java
index 9dd46e6f43925abab166207a9c227c2ed32492dd..3e5d3fa071327049c5ef63dedd364174f7cc2170 100644 (file)
@@ -13,7 +13,7 @@ import org.opendaylight.controller.cluster.raft.messages.InstallSnapshot;
 public class SerializationUtils {
 
     public static Object fromSerializable(Object serializable){
-        if (serializable.getClass().equals(InstallSnapshot.SERIALIZABLE_CLASS)) {
+        if (InstallSnapshot.isSerializedType(serializable)) {
             return InstallSnapshot.fromSerializable(serializable);
         }
         return serializable;