Fix FindBugs warnings in sal-akk-raft
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / SendHeartBeat.java
index 289b3bb7859a274f7774de79a8ba5659068290d2..ba1c157d37241f2274c9c7a9ed307f281a282a82 100644 (file)
@@ -11,10 +11,7 @@ package org.opendaylight.controller.cluster.raft.base.messages;
 import java.io.Serializable;
 
 /**
- * This messages is sent to the Leader to prompt it to send a heartbeat
- * to it's followers.
- *
- * Typically the Leader to itself on a schedule
+ * This messages is sent via a schedule to the Leader to prompt it to send a heart beat to its followers.
  */
 public final class SendHeartBeat implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -24,8 +21,7 @@ public final class SendHeartBeat implements Serializable {
         // Hidden on purpose
     }
 
-    @SuppressWarnings({ "static-method", "unused" })
-    private SendHeartBeat readResolve() {
+    private Object readResolve() {
         return INSTANCE;
     }
 }