# HG changeset patch # User darcy # Date 1393986747 28800 # Node ID 501d8479f798bb87884f78984f9161733777f435 # Parent 24d28d1eb7a99f76933329202b96132383f61003 8035452: Fix serial lint warnings in core libs Reviewed-by: smarks diff -r 24d28d1eb7a9 -r 501d8479f798 jdk/src/share/classes/java/util/EnumSet.java --- 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> extends AbstractSet implements Cloneable, java.io.Serializable { diff -r 24d28d1eb7a9 -r 501d8479f798 jdk/src/share/classes/sun/reflect/annotation/ExceptionProxy.java --- 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(); }