changeset 3771:a8569f14121d

7028133: Specify serialVersionUID for RegularEnumSet and JumboEnumSet Reviewed-by: alanb, mduigou Contributed-by: Neil Richards <neil.richards@ngmr.net>
author mduigou
date Thu, 17 Mar 2011 13:13:08 -0700
parents 320bdab4cb2a
children 3ad10ea6df89
files src/share/classes/java/util/JumboEnumSet.java src/share/classes/java/util/RegularEnumSet.java
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/JumboEnumSet.java	Thu Mar 17 08:55:41 2011 -0700
+++ b/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/src/share/classes/java/util/RegularEnumSet.java	Thu Mar 17 08:55:41 2011 -0700
+++ b/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.