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 / DeleteEntries.java
index 5650360c5ff89d24a09d1021066611fea44116f9..138ea0cfcf5de810a1ac0375125b76b42448397b 100644 (file)
@@ -24,6 +24,9 @@ public class DeleteEntries implements Serializable, MigratedSerializable {
 
         private DeleteEntries deleteEntries;
 
+        // 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
         }
@@ -35,7 +38,7 @@ public class DeleteEntries implements Serializable, MigratedSerializable {
         @Override
         public void writeExternal(final ObjectOutput out) throws IOException {
             out.writeLong(deleteEntries.fromIndex);
-         }
+        }
 
         @Override
         public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {