Bug 8424: Don't output data tree and tree candidates wih debug
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / DestroyLocalHistoryRequestProxyV1.java
index 9e953ceb210fd806a904c02718a2c0d7f5330beb..0ebd69054d9ea424bd9ca6730243c8e4dad3bab3 100644 (file)
@@ -19,6 +19,9 @@ import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifie
 final class DestroyLocalHistoryRequestProxyV1 extends AbstractLocalHistoryRequestProxy<DestroyLocalHistoryRequest> {
     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 DestroyLocalHistoryRequestProxyV1() {
         // For Externalizable
     }
@@ -28,7 +31,8 @@ final class DestroyLocalHistoryRequestProxyV1 extends AbstractLocalHistoryReques
     }
 
     @Override
-    protected DestroyLocalHistoryRequest createRequest(final LocalHistoryIdentifier target, final ActorRef replyTo) {
-        return new DestroyLocalHistoryRequest(target, replyTo);
+    protected DestroyLocalHistoryRequest createRequest(final LocalHistoryIdentifier target, final long sequence,
+            final ActorRef replyTo) {
+        return new DestroyLocalHistoryRequest(target, sequence, replyTo);
     }
 }