Fix warnings and clean up javadocs in sal-akka-raft
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / behaviors / PreLeader.java
index eab3f7d7da1d49feb57f71b801b4cbe6b4362d2a..09f5186a012b51f6e0d4296ccd35af2aeebced8c 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.controller.cluster.raft.persisted.NoopPayload;
  * the log with the leader's current term. Once the no-op entry is committed, all prior entries are committed
  * indirectly. Once all entries are committed, ie commitIndex matches the last log index, it switches to the
  * normal Leader state.
- * <p>
+ * <p/>
  * The use of a no-op entry in this manner is outlined in the last paragraph in ยง8 of the
  * <a href="https://raft.github.io/raft.pdf">extended raft version</a>.
  *
@@ -39,7 +39,7 @@ public class PreLeader extends AbstractLeader {
     @Override
     public RaftActorBehavior handleMessage(ActorRef sender, Object message) {
         if (message instanceof ApplyState) {
-            if(context.getLastApplied() >= context.getReplicatedLog().lastIndex()) {
+            if (context.getLastApplied() >= context.getReplicatedLog().lastIndex()) {
                 // We've applied all entries - we can switch to Leader.
                 return internalSwitchBehavior(new Leader(context, this));
             } else {