Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ElectionTerm.java
index ff79004bcebdcaea3ff541951c3a5a170e5e74ce..61aafef51354e88ab678dcfeb4f43970e308e636 100644 (file)
@@ -5,16 +5,17 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.controller.cluster.raft;
 
-import javax.annotation.Nullable;
+import org.eclipse.jdt.annotation.Nullable;
 
 /**
  * ElectionTerm contains information about a RaftActors election term.
+ *
  * <p>
  * This information includes the last known current term of the RaftActor
  * and which candidate was voted for by the RaftActor in that term.
+ *
  * <p>
  * This class ensures that election term information is persisted.
  */
@@ -31,8 +32,7 @@ public interface ElectionTerm {
      *
      * @return candidate id that received the vote or null if no candidate was voted for.
      */
-    @Nullable
-    String getVotedFor();
+    @Nullable String getVotedFor();
 
     /**
      * This method updates the in-memory election term state. This method should be called when recovering election