changeset 23051:501d8479f798

8035452: Fix serial lint warnings in core libs Reviewed-by: smarks
author darcy
date Tue, 04 Mar 2014 18:32:27 -0800
parents 24d28d1eb7a9
children 241885315119
files jdk/src/share/classes/java/util/EnumSet.java jdk/src/share/classes/sun/reflect/annotation/ExceptionProxy.java
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/util/EnumSet.java	Tue Mar 04 18:28:56 2014 -0800
+++ b/jdk/src/share/classes/java/util/EnumSet.java	Tue Mar 04 18:32:27 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -77,6 +77,8 @@
  * @see EnumMap
  * @serial exclude
  */
+@SuppressWarnings("serial") // No serialVersionUID due to usage of
+                            // serial proxy pattern
 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E>
     implements Cloneable, java.io.Serializable
 {
--- a/jdk/src/share/classes/sun/reflect/annotation/ExceptionProxy.java	Tue Mar 04 18:28:56 2014 -0800
+++ b/jdk/src/share/classes/sun/reflect/annotation/ExceptionProxy.java	Tue Mar 04 18:32:27 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -37,5 +37,6 @@
  * @since   1.5
  */
 public abstract class ExceptionProxy implements java.io.Serializable {
+    private static final long serialVersionUID = 7241930048386631401L;
     protected abstract RuntimeException generateException();
 }