Use java.io.Serial in yang-common
[yangtools.git] / common / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Uint8.java
index 2f218fa2baa85c7306e2a6285f6583f81899a857..ff87f0d2eeccfa75ecb91dde8aa764ef6a22fb87 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.yangtools.yang.common;
 import static java.util.Objects.requireNonNull;
 
 import com.google.common.annotations.Beta;
+import java.io.Serial;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.eclipse.jdt.annotation.Nullable;
@@ -43,6 +44,7 @@ public class Uint8 extends Number implements CanonicalValue<Uint8> {
     private static final short MAX_VALUE_SHORT = 255;
     private static final String MAX_VALUE_STR = "255";
 
+    @Serial
     private static final long serialVersionUID = 1L;
 
     private static final @NonNull Uint8[] CACHE;
@@ -388,6 +390,7 @@ public class Uint8 extends Number implements CanonicalValue<Uint8> {
         return toCanonicalString();
     }
 
+    @Serial
     private Object readResolve() {
         return instanceFor(value);
     }