changeset 9248:b134e98b4943

8033526: Fix serial lint warnings in java.awt.* Reviewed-by: briangoetz
author darcy
date Wed, 05 Feb 2014 10:15:45 -0800
parents 5c5c0a24b34b
children f3a403f925e6
files src/share/classes/java/awt/color/CMMException.java src/share/classes/java/awt/color/ProfileDataException.java src/share/classes/java/awt/datatransfer/FlavorEvent.java src/share/classes/java/awt/geom/IllegalPathStateException.java src/share/classes/java/awt/geom/NoninvertibleTransformException.java src/share/classes/java/awt/image/ImagingOpException.java src/share/classes/java/awt/image/RasterFormatException.java src/share/classes/java/awt/image/renderable/ParameterBlock.java src/share/classes/java/awt/print/PrinterAbortException.java src/share/classes/java/awt/print/PrinterException.java
diffstat 10 files changed, 23 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/color/CMMException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/color/ProfileDataException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/datatransfer/FlavorEvent.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/geom/IllegalPathStateException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/geom/NoninvertibleTransformException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/image/ImagingOpException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/image/RasterFormatException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/image/renderable/ParameterBlock.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/print/PrinterAbortException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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/src/share/classes/java/awt/print/PrinterException.java	Wed Feb 05 17:56:04 2014 +0100
+++ b/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