Bug 5740: Remove Serializable where not necessary
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / ElectionTimeout.java
index 84fa8b759014427f471b9353931eaa82e969ada1..606835e21fb09f3cda595aa3cdb27c052a885678 100644 (file)
@@ -8,8 +8,17 @@
 
 package org.opendaylight.controller.cluster.raft.base.messages;
 
-import java.io.Serializable;
+/**
+ * Local message sent to indicate the current election term has timed out.
+ */
+public final class ElectionTimeout {
+    public static final ElectionTimeout INSTANCE = new ElectionTimeout();
+
+    private ElectionTimeout() {
+        // Hidden on purpose
+    }
 
-public class ElectionTimeout implements Serializable {
-    private static final long serialVersionUID = 1L;
+    private Object readResolve() {
+        return INSTANCE;
+    }
 }