src/java.base/share/classes/java/util/EnumSet.java
changeset 55697 7fd4446c02ee
parent 52887 0d89f672c62e
child 57956 e0b8b019d2f5
equal deleted inserted replaced
55696:7e04ccc598e0 55697:7fd4446c02ee
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    74  *
    74  *
    75  * @author Josh Bloch
    75  * @author Josh Bloch
    76  * @since 1.5
    76  * @since 1.5
    77  * @see EnumMap
    77  * @see EnumMap
    78  */
    78  */
    79 @SuppressWarnings("serial") // No serialVersionUID due to usage of
       
    80                             // serial proxy pattern
       
    81 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E>
    79 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E>
    82     implements Cloneable, java.io.Serializable
    80     implements Cloneable, java.io.Serializable
    83 {
    81 {
       
    82     // declare EnumSet.class serialization compatibility with JDK 8
       
    83     private static final long serialVersionUID = 1009687484059888093L;
       
    84 
    84     /**
    85     /**
    85      * The class of all the elements of this set.
    86      * The class of all the elements of this set.
    86      */
    87      */
    87     final transient Class<E> elementType;
    88     final transient Class<E> elementType;
    88 
    89