7028133: Specify serialVersionUID for RegularEnumSet and JumboEnumSet
Reviewed-by: alanb, mduigou
Contributed-by: Neil Richards <neil.richards@ngmr.net>
--- 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.