mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8232230: Suppress warnings on non-serializable non-transient instance fields in java.util.concurrent
Reviewed-by: martin
This commit is contained in:
parent
49883054db
commit
98c9f8bdc7
14 changed files with 28 additions and 0 deletions
|
@ -4584,6 +4584,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
|||
public static class KeySetView<K,V> extends CollectionView<K,V,K>
|
||||
implements Set<K>, java.io.Serializable {
|
||||
private static final long serialVersionUID = 7249069246763182397L;
|
||||
@SuppressWarnings("serial") // Conditionally serializable
|
||||
private final V value;
|
||||
KeySetView(ConcurrentHashMap<K,V> map, V value) { // non-public
|
||||
super(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue