< prev index next >

src/java.base/share/classes/java/util/AbstractMap.java

Print this page

        

@@ -605,11 +605,13 @@
         implements Entry<K,V>, java.io.Serializable
     {
         @java.io.Serial
         private static final long serialVersionUID = -8499721149061103585L;
 
+        @SuppressWarnings("serial") // Not statically typed as Serializable
         private final K key;
+        @SuppressWarnings("serial") // Not statically typed as Serializable
         private V value;
 
         /**
          * Creates an entry representing a mapping from the specified
          * key to the specified value.

@@ -736,11 +738,13 @@
         implements Entry<K,V>, java.io.Serializable
     {
         @java.io.Serial
         private static final long serialVersionUID = 7138329143949025153L;
 
+        @SuppressWarnings("serial") // Not statically typed as Serializable
         private final K key;
+        @SuppressWarnings("serial") // Not statically typed as Serializable
         private final V value;
 
         /**
          * Creates an entry representing a mapping from the specified
          * key to the specified value.
< prev index next >