8033526: Fix serial lint warnings in java.awt.*
authordarcy
Wed, 05 Feb 2014 10:15:45 -0800
changeset 22656 b8ee81ac6fb3
parent 22655 7de4fe0b8488
child 22657 654c573cb341
8033526: Fix serial lint warnings in java.awt.* Reviewed-by: briangoetz
jdk/src/share/classes/java/awt/color/CMMException.java
jdk/src/share/classes/java/awt/color/ProfileDataException.java
jdk/src/share/classes/java/awt/datatransfer/FlavorEvent.java
jdk/src/share/classes/java/awt/geom/IllegalPathStateException.java
jdk/src/share/classes/java/awt/geom/NoninvertibleTransformException.java
jdk/src/share/classes/java/awt/image/ImagingOpException.java
jdk/src/share/classes/java/awt/image/RasterFormatException.java
jdk/src/share/classes/java/awt/image/renderable/ParameterBlock.java
jdk/src/share/classes/java/awt/print/PrinterAbortException.java
jdk/src/share/classes/java/awt/print/PrinterException.java
--- a/jdk/src/share/classes/java/awt/color/CMMException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/color/CMMException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -47,6 +47,7 @@
  */
 
 public class CMMException extends java.lang.RuntimeException {
+    private static final long serialVersionUID = 5775558044142994965L;
 
     /**
      *  Constructs a CMMException with the specified detail message.
--- a/jdk/src/share/classes/java/awt/color/ProfileDataException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/color/ProfileDataException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -31,6 +31,7 @@
  */
 
 public class ProfileDataException extends java.lang.RuntimeException {
+    private static final long serialVersionUID = 7286140888240322498L;
 
     /**
      *  Constructs a ProfileDataException with the specified detail message.
--- a/jdk/src/share/classes/java/awt/datatransfer/FlavorEvent.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/datatransfer/FlavorEvent.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2006, 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
@@ -38,6 +38,8 @@
  * @since 1.5
  */
 public class FlavorEvent extends EventObject {
+    private static final long serialVersionUID = -5842664112252414548L;
+
     /**
      * Constructs a <code>FlavorEvent</code> object.
      *
--- a/jdk/src/share/classes/java/awt/geom/IllegalPathStateException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/geom/IllegalPathStateException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -35,6 +35,8 @@
  */
 
 public class IllegalPathStateException extends RuntimeException {
+    private static final long serialVersionUID = -5158084205220481094L;
+
     /**
      * Constructs an <code>IllegalPathStateException</code> with no
      * detail message.
--- a/jdk/src/share/classes/java/awt/geom/NoninvertibleTransformException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/geom/NoninvertibleTransformException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -33,6 +33,8 @@
  */
 
 public class NoninvertibleTransformException extends java.lang.Exception {
+    private static final long serialVersionUID = 6137225240503990466L;
+
     /**
      * Constructs an instance of
      * <code>NoninvertibleTransformException</code>
--- a/jdk/src/share/classes/java/awt/image/ImagingOpException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/image/ImagingOpException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -32,6 +32,7 @@
  * process the image.
  */
 public class ImagingOpException extends java.lang.RuntimeException {
+    private static final long serialVersionUID = 8026288481846276658L;
 
     /**
      * Constructs an <code>ImagingOpException</code> object with the
--- a/jdk/src/share/classes/java/awt/image/RasterFormatException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/image/RasterFormatException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -31,6 +31,7 @@
  * invalid layout information in the {@link Raster}.
  */
 public class RasterFormatException extends java.lang.RuntimeException {
+    private static final long serialVersionUID = 96598996116164315L;
 
     /**
      * Constructs a new <code>RasterFormatException</code> with the
--- a/jdk/src/share/classes/java/awt/image/renderable/ParameterBlock.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/image/renderable/ParameterBlock.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -93,6 +93,8 @@
  * </pre>
  * */
 public class ParameterBlock implements Cloneable, Serializable {
+    private static final long serialVersionUID = -7577115551785240750L;
+
     /** A Vector of sources, stored as arbitrary Objects. */
     protected Vector<Object> sources = new Vector<Object>();
 
--- a/jdk/src/share/classes/java/awt/print/PrinterAbortException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/print/PrinterAbortException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -33,6 +33,7 @@
  */
 
 public class PrinterAbortException extends PrinterException {
+    private static final long serialVersionUID = 4725169026278854136L;
 
     /**
      * Constructs a new <code>PrinterAbortException</code> with no
--- a/jdk/src/share/classes/java/awt/print/PrinterException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/jdk/src/share/classes/java/awt/print/PrinterException.java	Wed Feb 05 10:15:45 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -32,6 +32,7 @@
  */
 
 public class PrinterException extends Exception {
+    private static final long serialVersionUID = -3757589981158265819L;
 
     /**
      * Constructs a new <code>PrinterException</code> object