Use java.io.Serial in yang-common
[yangtools.git] / common / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / QNameModule.java
index bfaa2f23eb921a05a3b2c345fb3d9b9de272e9ab..fc84ae2814762c1929e04bfb564dd0448c847ea6 100644 (file)
@@ -15,6 +15,7 @@ import com.google.common.collect.Interners;
 import java.io.DataInput;
 import java.io.DataOutput;
 import java.io.IOException;
+import java.io.Serial;
 import java.io.Serializable;
 import java.util.Objects;
 import java.util.Optional;
@@ -31,6 +32,7 @@ import org.opendaylight.yangtools.concepts.WritableObject;
  */
 public final class QNameModule implements Comparable<QNameModule>, Immutable, Serializable, Identifier, WritableObject {
     private static final Interner<QNameModule> INTERNER = Interners.newWeakInterner();
+    @Serial
     private static final long serialVersionUID = 3L;
 
     private final @NonNull XMLNamespace namespace;
@@ -167,6 +169,7 @@ public final class QNameModule implements Comparable<QNameModule>, Immutable, Se
             .toString();
     }
 
+    @Serial
     Object writeReplace() {
         return new NSv1(this);
     }