changeset 22109:94e298e5a08b

8031210: Remove serial warning from java.lang.Enum Reviewed-by: lancea, mduigou
author darcy
date Mon, 06 Jan 2014 13:54:54 -0800
parents 99859c0e9a33
children 06e486bc20b6
files jdk/src/share/classes/java/lang/Enum.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/lang/Enum.java	Wed Dec 11 16:52:41 2013 -0500
+++ b/jdk/src/share/classes/java/lang/Enum.java	Mon Jan 06 13:54:54 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2011, 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
@@ -52,6 +52,8 @@
  * @see     java.util.EnumMap
  * @since   1.5
  */
+@SuppressWarnings("serial") // No serialVersionUID needed due to
+                            // special-casing of enum types.
 public abstract class Enum<E extends Enum<E>>
         implements Comparable<E>, Serializable {
     /**