Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not use Stopwatch.toString() in logging
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
SerializationUtils.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SerializationUtils.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SerializationUtils.java
index 374e0fa9ba766cfe0417347fc4d6a4602d21fcdb..3e5d3fa071327049c5ef63dedd364174f7cc2170 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SerializationUtils.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SerializationUtils.java
@@
-8,15
+8,14
@@
package org.opendaylight.controller.cluster.raft;
package org.opendaylight.controller.cluster.raft;
-import org.opendaylight.controller.cluster.raft.messages.
AppendEntries
;
+import org.opendaylight.controller.cluster.raft.messages.
InstallSnapshot
;
public class SerializationUtils {
public static Object fromSerializable(Object serializable){
public class SerializationUtils {
public static Object fromSerializable(Object serializable){
- if
(serializable.getClass().equals(AppendEntries.SERIALIZABLE_CLASS))
{
- return
AppendEntries
.fromSerializable(serializable);
+ if
(InstallSnapshot.isSerializedType(serializable))
{
+ return
InstallSnapshot
.fromSerializable(serializable);
}
return serializable;
}
}
return serializable;
}
-
}
}