Annotate all serialVersionUID with @Serial 80/106580/2
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Wed, 21 Jun 2023 09:47:40 +0000 (11:47 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 22 Jun 2023 13:06:16 +0000 (13:06 +0000)
There are multiple occurrences of serialVersionUID
throughout the project. This change add missing
@Serial annotations

JIRA: NETCONF-1062
Change-Id: Ic3d1399f37dcba9fbfa377e8d7425dbaf089d3ab
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
58 files changed:
apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/Configuration.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/netconf/NetconfServiceFailedException.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/ClusteringActionException.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/ClusteringRpcException.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/AskForMasterMountPoint.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/ContainerNodeMessage.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/MasterActorDataInitialized.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NormalizedNodeMessage.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NotMasterException.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/RegisterMountPoint.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/SchemaPathMessage.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/UnregisterSlaveMountPoint.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/YangTextSchemaSourceRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/action/InvokeActionMessage.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/action/InvokeActionMessageReply.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/CommitRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/CreateEditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/DeleteEditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/DiscardChangesRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/EditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/GetConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/GetConfigWithFieldsRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/GetRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/GetWithFieldsRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/LockRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/MergeEditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/NetconfDataTreeServiceRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/RemoveEditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/ReplaceEditConfigRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/netconf/UnlockRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/rpc/InvokeRpcMessage.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/rpc/InvokeRpcMessageReply.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/CancelRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/DeleteRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/EmptyReadResponse.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/EmptyResultResponse.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/ExistsRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/MergeRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/NewReadTransactionRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/NewReadWriteTransactionRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/NewWriteTransactionRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/PutRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/ReadRequest.java
apps/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/transactions/SubmitRequest.java
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AuthenticationFailedException.java
plugins/netconf-client-mdsal/src/main/java/org/opendaylight/netconf/client/mdsal/NetconfDevice.java
plugins/netconf-server-mdsal/src/main/java/org/opendaylight/netconf/server/mdsal/DOMDataTransactionValidator.java
plugins/netconf-server-mdsal/src/main/java/org/opendaylight/netconf/server/mdsal/operations/FilterContentValidator.java
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/server/mdsal/operations/RuntimeRpcTest.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/DocumentedException.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/NetconfDeserializerException.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/NetconfDocumentedException.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/MissingNameSpaceException.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/UnexpectedElementException.java
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/UnexpectedNamespaceException.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfDocumentedException.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfError.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/WebSocketInitializer.java

index 7b1772f8f30f20bc0ff417f2d9d3a3c42f52259b..187d1951b68573184e72ae805425724dc22ffaeb 100644 (file)
@@ -12,10 +12,12 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.Serial;
 import java.util.Properties;
 
 public class Configuration {
     public abstract static class ConfigurationException extends RuntimeException {
+        @Serial
         private static final long serialVersionUID = -7759423506815697761L;
 
         ConfigurationException(final String msg) {
@@ -28,6 +30,7 @@ public class Configuration {
     }
 
     public static class ReadException extends ConfigurationException {
+        @Serial
         private static final long serialVersionUID = 1661483843463184121L;
 
         ReadException(final String msg, final Exception exc) {
@@ -36,6 +39,7 @@ public class Configuration {
     }
 
     public static class MissingException extends ConfigurationException {
+        @Serial
         private static final long serialVersionUID = 3406998256398889038L;
 
         private final String key;
index f1af5956e34fab485ad7067b272123046638ce99..dc0c987e0a59ede32dd34d8474d6d0b5051c553f 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.impl.netconf;
 
+import java.io.Serial;
 import org.opendaylight.yangtools.yang.common.OperationFailedException;
 import org.opendaylight.yangtools.yang.common.RpcError;
 
 public class NetconfServiceFailedException extends OperationFailedException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public NetconfServiceFailedException(final String message, final RpcError... errors) {
index 6d348a39e5163b0f40d75a39f274304a77ff867a..83df3caf91935a6dc890e91529653a4c3bc82151 100644 (file)
@@ -7,12 +7,14 @@
  */
 package org.opendaylight.netconf.topology.singleton.impl.utils;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.dom.api.DOMActionException;
 
 /**
  * Exception thrown during remote action invocation in Odl-Cluster environment.
  */
 public class ClusteringActionException extends DOMActionException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     /**
index 7b36dd3ff2f984d078625b22c533a8a76eebfdf7..9834891c2cb2a72b070dadcf9f330d1b923d3613 100644 (file)
@@ -7,9 +7,11 @@
  */
 package org.opendaylight.netconf.topology.singleton.impl.utils;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.dom.api.DOMRpcException;
 
 public class ClusteringRpcException extends DOMRpcException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public ClusteringRpcException(final String message) {
index 7c7fa49b150b9a4f8a8022b1b5c110ae37b0e351..3be720ece95b6e96d5dee12077e1bc2e548defe1 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.netconf.topology.singleton.messages;
 
 import akka.actor.ActorRef;
+import java.io.Serial;
 import java.io.Serializable;
 
 /**
@@ -16,6 +17,7 @@ import java.io.Serializable;
  * with reply 'RegisterMountPoint' which includes needed parameters.
  */
 public class AskForMasterMountPoint implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final ActorRef slaveActorRef;
index bfc8a8ad887d41c6553ff267cd22a464800fd1d8..039914308ec50ee32f08f68773d054bf7615e700 100644 (file)
@@ -13,6 +13,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import org.opendaylight.controller.cluster.datastore.node.utils.stream.SerializationUtils;
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 
@@ -21,6 +22,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
  * serialization when remote action is invoked.
  */
 public class ContainerNodeMessage implements Externalizable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private ContainerNode node;
index fa5482b8fe187a60d5e4890ea694d949c01f557b..6198190707afbdcea14a1e5d65c782642799017d 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.netconf.topology.singleton.messages;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 /**
@@ -15,5 +16,6 @@ import java.io.Serializable;
  * when this message is received by master, operational data-store is changed.
  */
 public class MasterActorDataInitialized implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index a9c8ab9fc2781827414c88e844a0d07cc7b9af9c..873281a0b1f9edb7e339b1b6e52473188ba327a3 100644 (file)
@@ -12,6 +12,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import org.opendaylight.controller.cluster.datastore.node.utils.stream.SerializationUtils;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
@@ -20,6 +21,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
  * Message which holds node data, prepared to sending between remote hosts with serialization.
  */
 public class NormalizedNodeMessage implements Externalizable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private YangInstanceIdentifier identifier;
index a9808063bed146dcb7e2ecb6546680688d3395c5..5e5d988d7ed2306111bf7917a851baa7201b1444 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.netconf.topology.singleton.messages;
 
 import akka.actor.ActorRef;
+import java.io.Serial;
 
 /**
  * Exception reply indicating the recipient is not the master.
@@ -15,6 +16,7 @@ import akka.actor.ActorRef;
  * @author Thomas Pantelis
  */
 public class NotMasterException extends Exception {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public NotMasterException(final ActorRef recipient) {
index fbca23c3c7bd70978eba6b96c6e03ebf253b8e03..c47d2c4dfedf1f46c65c92b258a4dd5083320adb 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.netconf.topology.singleton.messages;
 
 import akka.actor.ActorRef;
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.List;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
@@ -17,6 +18,7 @@ import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
  * Master sends the message to slave with necessary parameters for creating slave mount point.
  */
 public class RegisterMountPoint implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final List<SourceIdentifier> allSourceIdentifiers;
index a0278aef74131e15467eeba5142a7577def164af..8596cf395a2456fb6977ebc107be44a30ec77b0e 100644 (file)
@@ -14,12 +14,14 @@ import java.io.IOException;
 import java.io.InvalidObjectException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.List;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
 public class SchemaPathMessage implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     @SuppressFBWarnings("SE_BAD_FIELD")
@@ -47,6 +49,7 @@ public class SchemaPathMessage implements Serializable {
     }
 
     private static class Proxy implements Externalizable {
+        @Serial
         private static final long serialVersionUID = 2L;
 
         private SchemaPathMessage schemaPathMessage;
index 303f0b465ae9f96176e4282f92ed658a98afa85b..ab48f6b812d3ea887c492e02cba3cf616c48aa92 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.netconf.topology.singleton.messages;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 /**
@@ -15,5 +16,6 @@ import java.io.Serializable;
  * close method). Message must be sended before slave actor is poisoned.
  */
 public class UnregisterSlaveMountPoint implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 5f3bb14a71a5e4d08cd9f48c8d502c9521057926..a3f3dabc132f0e53a264a71b6e98df1749e8717e 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.netconf.topology.singleton.messages;
 
+import java.io.Serial;
 import java.io.Serializable;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 
@@ -16,6 +17,7 @@ import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
  * Master responds with resolved schema source.
  */
 public class YangTextSchemaSourceRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final SourceIdentifier sourceIdentifier;
index e415b21b0d4b6e80db19cfcfaa57b8194fa4371e..af1642c9f885e28afdf955cff157b5f17065d049 100644 (file)
@@ -13,6 +13,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import java.io.Serializable;
 import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
@@ -26,6 +27,7 @@ import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absol
  * invoked.
  */
 public class InvokeActionMessage implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final SchemaPathMessage schemaPathMessage;
@@ -73,6 +75,7 @@ public class InvokeActionMessage implements Serializable {
     }
 
     private static class Proxy implements Externalizable {
+        @Serial
         private static final long serialVersionUID = 2L;
 
         private InvokeActionMessage invokeActionMessage;
index 07ddfe9dee67e21b93a46c708f81070b5e74c540..c0f2d70e7bf947d0d27de40c997a7dcfd750db1a 100644 (file)
@@ -14,6 +14,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -27,6 +28,7 @@ import org.opendaylight.yangtools.yang.common.RpcError;
  * remote hosts with serialization when action operation is invoked.
  */
 public class InvokeActionMessageReply implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     @SuppressFBWarnings("SE_BAD_FIELD")
@@ -58,6 +60,7 @@ public class InvokeActionMessageReply implements Serializable {
     }
 
     private static class Proxy implements Externalizable {
+        @Serial
         private static final long serialVersionUID = 2L;
 
         private InvokeActionMessageReply invokeActionMessageReply;
index 1a6bf31c5c940bebf974b1062bf51ac8db58f6e5..62e19cbac82c569afbf356c2c5329c6a59a133da 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class CommitRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index b6edb264e128b269c17cf8ed20509ba3236cb59b..3eb1e2bc9b0ff9d59023d4f807c3d8c4654cc609 100644 (file)
@@ -7,11 +7,13 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.api.EffectiveOperation;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class CreateEditConfigRequest extends EditConfigRequest {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public CreateEditConfigRequest(LogicalDatastoreType store, NormalizedNodeMessage data,
index d33a890341229a92916f7e481df348e64aa1ffe1..be39bb423640acdf5ab627df7c7e27319c4b8fa0 100644 (file)
@@ -7,11 +7,13 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class DeleteEditConfigRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index ddb123ed2059af540283a6db8b947b818735967b..e97abbdfac2ece4a4aaccdd41178d25445d90b71 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class DiscardChangesRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 7dada2cab7760a1bee993446c2af4a064863488a..dd6a37f6d05bf2f86b35a288769538aa58f114c5 100644 (file)
@@ -7,12 +7,14 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.api.EffectiveOperation;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class EditConfigRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 93813ca63f2eb8b43995019b7275f7beee580075..64aa427167fd57788f72ec3769410c1f0397bc80 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import org.opendaylight.netconf.topology.singleton.messages.transactions.ReadActorMessage;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class GetConfigRequest implements ReadActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final YangInstanceIdentifier path;
index a238e5f03fbb5a5f7f7b73870571e7b9a2d4683e..5088c988ded4c4cfe8d7122de22c611aa7767da5 100644 (file)
@@ -8,10 +8,12 @@
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
 import com.google.common.collect.ImmutableList;
+import java.io.Serial;
 import java.util.List;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class GetConfigWithFieldsRequest extends GetConfigRequest {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final List<YangInstanceIdentifier> fields;
index 1ad15fdf4fd84f1c069aee35dc722c850f998a68..f863d0148bc47593952bf374ea16ca49749fca4f 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import org.opendaylight.netconf.topology.singleton.messages.transactions.ReadActorMessage;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class GetRequest implements ReadActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final YangInstanceIdentifier path;
index 1333d3d1d216f56cb323589adedff6d6e55fa7d8..c265e30914c62c405e776ffe3396add022d5ee96 100644 (file)
@@ -8,10 +8,12 @@
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
 import com.google.common.collect.ImmutableList;
+import java.io.Serial;
 import java.util.List;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class GetWithFieldsRequest extends GetRequest {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final List<YangInstanceIdentifier> fields;
index 5895bfc1a15e36b44bb000cf2410894c760e227e..362bc32509204eb7aecf72a0d8a8aff9525a367c 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class LockRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 5c390220941786d46eae13323c90933c424035f2..73c5b9551794b3bb737561778713cdd962454f4d 100644 (file)
@@ -7,11 +7,13 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.api.EffectiveOperation;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class MergeEditConfigRequest extends EditConfigRequest {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public MergeEditConfigRequest(LogicalDatastoreType store, NormalizedNodeMessage data,
index 64a828c1cbd7b6af3d2e47d7adc8dc6daa577a05..585b37e0972d1fcca6fc5274d967be524531c72e 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class NetconfDataTreeServiceRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index fc3fdb9cc93a59ad5dee8d2bb51b4a1cd5ebf1b8..1683cfcdd305338afac7de87f6546bc93e69118d 100644 (file)
@@ -7,11 +7,13 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class RemoveEditConfigRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 0b8949bd792ed53d17b53e8f6871c65ebfbd578f..a766b3a21d654547c31cf8931ec43a5ddb738f67 100644 (file)
@@ -7,11 +7,13 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.api.EffectiveOperation;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class ReplaceEditConfigRequest extends EditConfigRequest {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public ReplaceEditConfigRequest(final LogicalDatastoreType store, final NormalizedNodeMessage data,
index e2d0fca81b096ef1fa68074c4a6468517a3da02f..2d96fc1935d49dacd075addf5e1cd32941456fcc 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.netconf;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class UnlockRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 1324e7e2f8c23be5f7a7425c3eab0e8e0efae250..a03e7bfce73fdd16602006571ada5aeca3c9e459 100644 (file)
@@ -11,6 +11,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import java.io.Serializable;
 import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
@@ -18,6 +19,7 @@ import org.opendaylight.netconf.topology.singleton.messages.SchemaPathMessage;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
 public class InvokeRpcMessage implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final SchemaPathMessage schemaPathMessage;
@@ -52,6 +54,7 @@ public class InvokeRpcMessage implements Serializable {
     }
 
     private static class Proxy implements Externalizable {
+        @Serial
         private static final long serialVersionUID = 2L;
 
         private InvokeRpcMessage invokeRpcMessage;
index 7d808d1fc1e48b51037d1efc6f8849d131d6e810..0180c147f9946f04489a044c7acccbf2e8d45d0e 100644 (file)
@@ -14,6 +14,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.Collection;
 import java.util.LinkedList;
@@ -23,6 +24,7 @@ import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessag
 import org.opendaylight.yangtools.yang.common.RpcError;
 
 public class InvokeRpcMessageReply implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     @SuppressFBWarnings("SE_BAD_FIELD")
@@ -48,6 +50,7 @@ public class InvokeRpcMessageReply implements Serializable {
     }
 
     private static class Proxy implements Externalizable {
+        @Serial
         private static final long serialVersionUID = 2L;
 
         private InvokeRpcMessageReply invokeRpcMessageReply;
index 72d8e9e84926f06862d076c4ed941c40d3ada33d..b31f7587684c0f95a9293aaff1ce332345ef027c 100644 (file)
@@ -8,6 +8,9 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
+
 public class CancelRequest implements WriteActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 64c04051e36bd22d5e61a03efed9d688a6d37b90..bd98e0168cc90232c62ebf46d44267e724304cc6 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class DeleteRequest implements WriteActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 046ea2e01735b2fffc4f08e98904518bec59f819..1db90c6a35a9d5ea76069f969b29ab7819b8cf17 100644 (file)
@@ -8,12 +8,14 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 /**
  * Message is sended when read result do not present any value.
  */
 public class EmptyReadResponse implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
 }
index 718d85c62447119de7a76074b4a886f34fefb088..cc2ec7a49fbbb744dfe8fe9527ab6d06c2ef10c9 100644 (file)
@@ -8,12 +8,14 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 /**
  * Message is sended when RPC result does not exist or is empty.
  */
 public class EmptyResultResponse implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
 
index 2518e4bbbe58af6fd8b25f442f75df81df856332..a4fa82cdd46bc0a856aada71cea0dbef2d18917c 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class ExistsRequest implements ReadActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 5575326568bf83b81f38a597303f2a982d4ecc6a..d506cbdb393c5ef85b61d763ec434c76371662fe 100644 (file)
@@ -8,10 +8,12 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class MergeRequest implements WriteActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final NormalizedNodeMessage data;
index c1490f2f858a46620c05790d0dc6ee03fcc53cf6..8d7ac0c3e784f0298a4d81b584f57adffe67d885 100644 (file)
@@ -8,9 +8,11 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class NewReadTransactionRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
 }
index 9a9a5852b5c98115dd95bab687bf32b67d5a904e..c40e9430da5c4717417d11ae2fb18b9589569f23 100644 (file)
@@ -8,8 +8,10 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class NewReadWriteTransactionRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 34184be483494240ed440c7bbfcd967a2120c636..a4246b27e4073c9f52aebc2a16d68dabefb799e7 100644 (file)
@@ -8,9 +8,11 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import java.io.Serializable;
 
 public class NewWriteTransactionRequest implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
 }
index 64d32300af4d0f80bc928beea3077bbf1513dec0..462f4a50630191b6911d70782db3f705bb56aa37 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 
 public class PutRequest implements WriteActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 2cc5151374edfaa632abc2830e67fb0790912136..60514664a1f0051d45adc5323f7269fe101d3c59 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 public class ReadRequest implements ReadActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final LogicalDatastoreType store;
index 64da32a0fe2ec0fb4e26ecf403a2f17c03cd8627..3d7deb7344ed0e73a42ffd82cf71c67b2e7323a7 100644 (file)
@@ -8,6 +8,9 @@
 
 package org.opendaylight.netconf.topology.singleton.messages.transactions;
 
+import java.io.Serial;
+
 public class SubmitRequest implements WriteActorMessage {
+    @Serial
     private static final long serialVersionUID = 1L;
 }
index 71509a1003452e3568fd37da87d5dbe1faf330c3..f5ece86506ced97c00b94e608ea0a8c0fdfd470d 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.netconf.nettyutil.handler.ssh.client;
 import static java.util.Objects.requireNonNull;
 
 import com.google.common.annotations.Beta;
+import java.io.Serial;
 import org.opendaylight.netconf.shaded.sshd.common.SshException;
 
 /**
@@ -17,6 +18,7 @@ import org.opendaylight.netconf.shaded.sshd.common.SshException;
  */
 @Beta
 public class AuthenticationFailedException extends SshException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public AuthenticationFailedException(final String message) {
index 8b41bbff4a2ca2986c1c796888bc0bf49b2946e2..79041302d8f375b07ff2e60d71ce8fe51fdb6a29 100644 (file)
@@ -22,6 +22,7 @@ import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.SettableFuture;
+import java.io.Serial;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashMap;
@@ -373,6 +374,7 @@ public class NetconfDevice implements RemoteDevice<NetconfDeviceCommunicator> {
      * A dedicated exception to indicate when we fail to setup an {@link EffectiveModelContext}.
      */
     public static final class EmptySchemaContextException extends Exception {
+        @Serial
         private static final long serialVersionUID = 1L;
 
         public EmptySchemaContextException(final String message) {
index c0d8650c458b21e4c1ecf1aaddc0299a566a5321..e7cfca516550937e42cd662e3833d534b0155a28 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.netconf.server.mdsal;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.FluentFuture;
+import java.io.Serial;
 import org.opendaylight.mdsal.dom.api.DOMDataBroker;
 import org.opendaylight.mdsal.dom.api.DOMDataBrokerExtension;
 import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction;
@@ -47,6 +48,7 @@ public interface DOMDataTransactionValidator extends DOMDataBrokerExtension {
      * failed.
      */
     class ValidationFailedException extends OperationFailedException {
+        @Serial
         private static final long serialVersionUID = 1L;
 
         public ValidationFailedException(final String message, final Throwable cause) {
index f06b479681001786178ef67f6f32d25d14d0f8c3..0ed55171e2be7007c9c58f89b2834c79b84b6b16 100644 (file)
@@ -11,6 +11,7 @@ import static org.opendaylight.yangtools.yang.data.util.ParserStreamUtils.findSc
 
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
+import java.io.Serial;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Deque;
@@ -297,6 +298,7 @@ public class FilterContentValidator {
     }
 
     private static class ValidationException extends Exception {
+        @Serial
         private static final long serialVersionUID = 1L;
 
         ValidationException(final XmlElement parent, final XmlElement child) {
index 38c8f55157b7d3690490916498bec342b107b75d..6bbbad1c81ce3e8600da4624cd7a5cae6533a1c6 100644 (file)
@@ -19,6 +19,7 @@ import com.google.common.io.ByteSource;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import java.io.IOException;
+import java.io.Serial;
 import java.util.Collection;
 import java.util.List;
 import javax.xml.parsers.ParserConfigurationException;
@@ -103,6 +104,7 @@ public class RuntimeRpcTest {
         @Override
         public ListenableFuture<DOMRpcResult> invokeRpc(final QName type, final ContainerNode input) {
             return Futures.immediateFailedFuture(new DOMRpcException("rpc invocation not implemented yet") {
+                @Serial
                 private static final long serialVersionUID = 1L;
             });
         }
index 61eadb2b26b07f5ae4b1aef67381e6df3d1fb7b4..1ae4c492fd6db4389fc58fa2df2d6fc5e08054be 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.netconf.api;
 
 import static org.opendaylight.netconf.api.xml.XmlNetconfConstants.RPC_REPLY_KEY;
 
+import java.io.Serial;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -39,6 +40,7 @@ public class DocumentedException extends Exception {
     public static final String ERROR_MESSAGE = "error-message";
     public static final String ERROR_INFO = "error-info";
 
+    @Serial
     private static final long serialVersionUID = 1L;
     private static final Logger LOG = LoggerFactory.getLogger(DocumentedException.class);
     private static final DocumentBuilderFactory BUILDER_FACTORY;
index 9e93f8fb26b16a0e45bce19c459c04c134f6618f..8277dda6f51614e0634022b441939000f696cadc 100644 (file)
@@ -8,12 +8,15 @@
 
 package org.opendaylight.netconf.api;
 
+import java.io.Serial;
+
 /**
  * This exception is thrown by
  * {@link NetconfSessionListener#onMessage} to indicate fatal
  * communication problem after which the session should be closed.
  */
 public class NetconfDeserializerException extends Exception {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public NetconfDeserializerException(final String message) {
index ed623cd7f10693c408bc524482e198300da26486..6804c122ab93207c219e9d7ae27a598f1d5d430c 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.netconf.api;
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import java.io.Serial;
 import java.util.Map;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
@@ -18,6 +19,7 @@ import org.w3c.dom.Document;
  * Checked exception to communicate an error that needs to be sent to the netconf client.
  */
 public class NetconfDocumentedException extends DocumentedException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public NetconfDocumentedException(final String message) {
index 6908d07c46bcd7c5528f7a53e741094394822afc..d1c252bd1cb4e12c469f17a7f44017782c3e7104 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.netconf.api.xml;
 
+import java.io.Serial;
 import java.util.Map;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
@@ -14,6 +15,7 @@ import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
 
 public class MissingNameSpaceException extends DocumentedException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public MissingNameSpaceException(final String message, final ErrorType errorType, final ErrorTag errorTag,
index 95a036d8a235dd6722ccaaf91d66f1de0331b983..4d5ff7ee711733640744f631ee8f47a38a1cdef6 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.netconf.api.xml;
 
+import java.io.Serial;
 import java.util.Map;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
@@ -14,6 +15,7 @@ import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
 
 public class UnexpectedElementException extends DocumentedException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public UnexpectedElementException(final String message, final ErrorType errorType, final ErrorTag errorTag,
index 825f1ad8e6e7fac6141557eb418680a4949b133e..2f0abc5b26310c65493d195d809cda62cc20c6ae 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.netconf.api.xml;
 
+import java.io.Serial;
 import java.util.Map;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
@@ -14,6 +15,7 @@ import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
 
 public class UnexpectedNamespaceException extends DocumentedException {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     public UnexpectedNamespaceException(final String format, final Object... args) {
index 642613cc02e1ae8bedf4d41edb433b13d7d1c364..44d5c42a1333182989654c751f0fafcec10e0a4a 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.restconf.common.errors;
 
 import static java.util.Objects.requireNonNull;
 
+import java.io.Serial;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
@@ -36,6 +37,7 @@ import org.opendaylight.yangtools.yang.data.api.YangNetconfErrorAware;
  * @author Thomas Pantelis
  */
 public class RestconfDocumentedException extends WebApplicationException {
+    @Serial
     private static final long serialVersionUID = 2L;
 
     private final List<RestconfError> errors;
index 0919c08fb8b342e74b297b294377b649dffe199d..f44717bdf86bde647d2b17053ce090421b45575e 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.restconf.common.errors;
 
 import static java.util.Objects.requireNonNull;
 
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.Locale;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
@@ -27,6 +28,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
  *     See also <a href="https://tools.ietf.org/html/draft-bierman-netconf-restconf-02">RESTCONF</a>.
  */
 public class RestconfError implements Serializable {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private final ErrorType errorType;
index 3398a337bddbc9e25fbe29ea13c9aa07493ea257..c4016cc9247e3f5363bdf2b88a8db2a38290b3a4 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.restconf.nb.rfc8040.streams;
 
 import com.google.common.annotations.VisibleForTesting;
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import java.io.Serial;
 import java.util.concurrent.ScheduledExecutorService;
 import javax.inject.Inject;
 import javax.inject.Singleton;
@@ -28,6 +29,7 @@ import org.slf4j.LoggerFactory;
  */
 @Singleton
 public final class WebSocketInitializer extends WebSocketServlet {
+    @Serial
     private static final long serialVersionUID = 1L;
 
     @SuppressFBWarnings(value = "SE_BAD_FIELD",