Fix CS warnings in cds-access-api and enable enforcement
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / ExistsTransactionRequestProxyV1.java
index 84f74004fe59aa6626f724c0565e6eea2449b576..e95da8ddde7c8fe5e3d5cad6efd910f3877336d2 100644 (file)
@@ -20,6 +20,9 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 final class ExistsTransactionRequestProxyV1 extends AbstractReadTransactionRequestProxyV1<ExistsTransactionRequest> {
     private static final long serialVersionUID = 1L;
 
+    // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
+    // be able to create instances via reflection.
+    @SuppressWarnings("checkstyle:RedundantModifier")
     public ExistsTransactionRequestProxyV1() {
         // For Externalizable
     }
@@ -33,4 +36,4 @@ final class ExistsTransactionRequestProxyV1 extends AbstractReadTransactionReque
             final ActorRef replyTo, final YangInstanceIdentifier path) {
         return new ExistsTransactionRequest(target, sequence, replyTo, path);
     }
-}
\ No newline at end of file
+}