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 / persisted / UpdateElectionTerm.java
index ae86921b926ebab030fd8b1f457a20ef11b5001b..55096d677e60019cfd86378a0f5fda71b8e61fdb 100644 (file)
@@ -22,6 +22,9 @@ public class UpdateElectionTerm implements Serializable, MigratedSerializable {
 
         private UpdateElectionTerm updateElectionTerm;
 
+        // checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't
+        // redundant. It is explicitly needed for Java serialization to be able to create instances via reflection.
+        @SuppressWarnings("checkstyle:RedundantModifier")
         public Proxy() {
             // For Externalizable
         }
@@ -34,7 +37,7 @@ public class UpdateElectionTerm implements Serializable, MigratedSerializable {
         public void writeExternal(final ObjectOutput out) throws IOException {
             out.writeLong(updateElectionTerm.currentTerm);
             out.writeObject(updateElectionTerm.votedFor);
-         }
+        }
 
         @Override
         public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {