Sprinkle java.io.Serial 28/106528/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Jun 2023 20:46:51 +0000 (22:46 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Jun 2023 20:47:22 +0000 (22:47 +0200)
Add annotations to make sure the API is covered.

Change-Id: I5fb74fcc6b37386a029e69cd79d6e1978601637a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseDataTreeNotificationListenerRegistration.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseDataTreeNotificationListenerRegistrationReply.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/DataTreeChangedReply.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/GetKnownClients.java

index 3b5c6b3b8c89e81e0df5d0aac2c283f17ce893b9..327dca0e801ef001cc10643b39e61ea6843c582a 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore.messages;
 import java.io.Serializable;
 
 public final class CloseDataTreeNotificationListenerRegistration implements Serializable {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
     private static final CloseDataTreeNotificationListenerRegistration INSTANCE =
             new CloseDataTreeNotificationListenerRegistration();
@@ -21,6 +22,7 @@ public final class CloseDataTreeNotificationListenerRegistration implements Seri
         return INSTANCE;
     }
 
+    @java.io.Serial
     private Object readResolve() {
         return INSTANCE;
     }
index 0bc5254c1459a47dc19bb2e505738558168d5e69..ae825106ad36e56cbb677c78c089d621559d79cb 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore.messages;
 import java.io.Serializable;
 
 public final class CloseDataTreeNotificationListenerRegistrationReply implements Serializable {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
     private static final CloseDataTreeNotificationListenerRegistrationReply INSTANCE =
             new CloseDataTreeNotificationListenerRegistrationReply();
@@ -22,6 +23,7 @@ public final class CloseDataTreeNotificationListenerRegistrationReply implements
         return INSTANCE;
     }
 
+    @java.io.Serial
     private Object readResolve() {
         return INSTANCE;
     }
index d50079e6a12f7bb3f702c3092df5ee1a3ec13711..06e898e09a66062cd59bd0be81bcc388813f11ee 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore.messages;
 import java.io.Serializable;
 
 public final class DataTreeChangedReply implements Serializable {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
     private static final DataTreeChangedReply INSTANCE = new DataTreeChangedReply();
 
@@ -21,6 +22,7 @@ public final class DataTreeChangedReply implements Serializable {
         return INSTANCE;
     }
 
+    @java.io.Serial
     private Object readResolve() {
         return INSTANCE;
     }
index f1e7fb70b5b37fb8eede14673c3fdcbdca2a92f5..30ac1a9eb73c27f0eab09e416b13772d32c81fcc 100644 (file)
@@ -14,6 +14,7 @@ import org.eclipse.jdt.annotation.NonNull;
  * Request a shard to report the clients it knows about. Shard is required to respond with {@link GetKnownClientsReply}.
  */
 public final class GetKnownClients implements Serializable {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
 
     public static final @NonNull GetKnownClients INSTANCE = new GetKnownClients();
@@ -22,6 +23,7 @@ public final class GetKnownClients implements Serializable {
 
     }
 
+    @java.io.Serial
     private Object readResolve() {
         return INSTANCE;
     }