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 / ServerConfigurationPayload.java
index bd9bb3e417426113ea5ebaf2849df0a4d407607d..0f206b5d39d5b70f314801919f05292c683fa245 100644 (file)
@@ -33,6 +33,9 @@ public final class ServerConfigurationPayload extends Payload implements Persist
 
         private List<ServerInfo> serverConfig;
 
+        // 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
         }
@@ -48,7 +51,7 @@ public final class ServerConfigurationPayload extends Payload implements Persist
                 out.writeObject(i.getId());
                 out.writeBoolean(i.isVoting());
             }
-         }
+        }
 
         @Override
         public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {