7028133: Specify serialVersionUID for RegularEnumSet and JumboEnumSet
authormduigou
Thu, 17 Mar 2011 13:13:08 -0700
changeset 8800 e658ae923d53
parent 8798 088871daae86
child 8801 7047ae962542
7028133: Specify serialVersionUID for RegularEnumSet and JumboEnumSet Reviewed-by: alanb, mduigou Contributed-by: Neil Richards <neil.richards@ngmr.net>
jdk/src/share/classes/java/util/JumboEnumSet.java
jdk/src/share/classes/java/util/RegularEnumSet.java
--- a/jdk/src/share/classes/java/util/JumboEnumSet.java	Thu Mar 17 08:55:41 2011 -0700
+++ b/jdk/src/share/classes/java/util/JumboEnumSet.java	Thu Mar 17 13:13:08 2011 -0700
@@ -34,6 +34,8 @@
  * @serial exclude
  */
 class JumboEnumSet<E extends Enum<E>> extends EnumSet<E> {
+    private static final long serialVersionUID = 334349849919042784L;
+
     /**
      * Bit vector representation of this set.  The ith bit of the jth
      * element of this array represents the  presence of universe[64*j +i]
--- a/jdk/src/share/classes/java/util/RegularEnumSet.java	Thu Mar 17 08:55:41 2011 -0700
+++ b/jdk/src/share/classes/java/util/RegularEnumSet.java	Thu Mar 17 13:13:08 2011 -0700
@@ -34,6 +34,7 @@
  * @serial exclude
  */
 class RegularEnumSet<E extends Enum<E>> extends EnumSet<E> {
+    private static final long serialVersionUID = 3411599620347842686L;
     /**
      * Bit vector representation of this set.  The 2^k bit indicates the
      * presence of universe[k] in this set.