Add new cds-access-api proxies
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / AbstractLocalHistoryRequestProxy.java
index cd02a20099597500687525db4ec5816679527714..1bd37fb83c18b8cb5cf7f89ef4ce076c252140ed 100644 (file)
@@ -7,9 +7,6 @@
  */
 package org.opendaylight.controller.cluster.access.commands;
 
-import java.io.DataInput;
-import java.io.IOException;
-import java.io.Serial;
 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxy;
 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
 
@@ -21,8 +18,8 @@ import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifie
  * @param <T> Message type
  */
 abstract class AbstractLocalHistoryRequestProxy<T extends LocalHistoryRequest<T>>
-        extends AbstractRequestProxy<LocalHistoryIdentifier, T> {
-    @Serial
+        extends AbstractRequestProxy<LocalHistoryIdentifier, T> implements LocalHistoryRequest.SerialForm<T> {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
 
     protected AbstractLocalHistoryRequestProxy() {
@@ -32,9 +29,4 @@ abstract class AbstractLocalHistoryRequestProxy<T extends LocalHistoryRequest<T>
     AbstractLocalHistoryRequestProxy(final T request) {
         super(request);
     }
-
-    @Override
-    protected final LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
-        return LocalHistoryIdentifier.readFrom(in);
-    }
 }