8033222: Fix serial lint warnings in sun.awt.*
authordarcy
Mon, 03 Feb 2014 10:21:58 -0800
changeset 22636 5bb85dc6771b
parent 22635 da42d49ea2d5
child 22637 d4b45e70a981
8033222: Fix serial lint warnings in sun.awt.* Reviewed-by: alanb
jdk/src/share/classes/sun/awt/CustomCursor.java
jdk/src/share/classes/sun/awt/FontConfiguration.java
jdk/src/share/classes/sun/awt/TimedWindowEvent.java
jdk/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java
jdk/src/share/classes/sun/awt/event/IgnorePaintEvent.java
jdk/src/share/classes/sun/awt/image/BadDepthException.java
jdk/src/share/classes/sun/awt/image/ImageAccessException.java
jdk/src/share/classes/sun/awt/image/ImageFormatException.java
jdk/src/share/classes/sun/awt/image/PNGImageDecoder.java
jdk/src/share/classes/sun/awt/shell/DefaultShellFolder.java
jdk/src/share/classes/sun/awt/shell/ShellFolder.java
--- a/jdk/src/share/classes/sun/awt/CustomCursor.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/CustomCursor.java	Mon Feb 03 10:21:58 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,7 @@
  *
  * @author      ThomasBall
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public abstract class CustomCursor extends Cursor {
 
     protected Image image;
--- a/jdk/src/share/classes/sun/awt/FontConfiguration.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/FontConfiguration.java	Mon Feb 03 10:21:58 2014 -0800
@@ -2109,6 +2109,7 @@
             return ret;
         }
 
+        @SuppressWarnings("serial") // JDK-implementation class
         class FontProperties extends Properties {
             public synchronized Object put(Object k, Object v) {
                 parseProperty((String)k, (String)v);
--- a/jdk/src/share/classes/sun/awt/TimedWindowEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/TimedWindowEvent.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -28,6 +28,7 @@
 import java.awt.event.WindowEvent;
 import java.awt.Window;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class TimedWindowEvent extends WindowEvent {
 
     private long time;
--- a/jdk/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -29,6 +29,7 @@
 import java.awt.dnd.InvalidDnDOperationException;
 import java.awt.event.MouseEvent;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class SunDropTargetEvent extends MouseEvent {
 
     public static final int MOUSE_DROPPED = MouseEvent.MOUSE_RELEASED;
--- a/jdk/src/share/classes/sun/awt/event/IgnorePaintEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/event/IgnorePaintEvent.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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,7 @@
  * Look at <code>javax.swing.SwingPaintEventDispatcher</code> for more.
  *
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public class IgnorePaintEvent extends PaintEvent {
     public IgnorePaintEvent(Component source, int id, Rectangle updateRect) {
         super(source, id, updateRect);
--- a/jdk/src/share/classes/sun/awt/image/BadDepthException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/image/BadDepthException.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -25,6 +25,7 @@
 
 package sun.awt.image;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class BadDepthException extends Exception {
     public BadDepthException() {
     }
--- a/jdk/src/share/classes/sun/awt/image/ImageAccessException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/image/ImageAccessException.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -25,6 +25,7 @@
 
 package sun.awt.image;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class ImageAccessException extends Exception {
     public ImageAccessException(String s) {
         super(s);
--- a/jdk/src/share/classes/sun/awt/image/ImageFormatException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/image/ImageFormatException.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -25,6 +25,7 @@
 
 package sun.awt.image;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class ImageFormatException extends Exception {
     public ImageFormatException(String s) {
         super(s);
--- a/jdk/src/share/classes/sun/awt/image/PNGImageDecoder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/image/PNGImageDecoder.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -231,6 +231,7 @@
         }
         return true;
     }
+    @SuppressWarnings("serial") // JDK-implementation class
     public class PNGException extends IOException {
         PNGException(String s) { super(s); }
     }
--- a/jdk/src/share/classes/sun/awt/shell/DefaultShellFolder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/shell/DefaultShellFolder.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -34,7 +34,7 @@
  * @author Michael Martak
  * @since 1.4
  */
-
+@SuppressWarnings("serial") // JDK-implementation class
 class DefaultShellFolder extends ShellFolder {
 
     /**
--- a/jdk/src/share/classes/sun/awt/shell/ShellFolder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/jdk/src/share/classes/sun/awt/shell/ShellFolder.java	Mon Feb 03 10:21:58 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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,7 +37,7 @@
  * @author Michael Martak
  * @since 1.4
  */
-
+@SuppressWarnings("serial") // JDK-implementation class
 public abstract class ShellFolder extends File {
     private static final String COLUMN_NAME = "FileChooser.fileNameHeaderText";
     private static final String COLUMN_SIZE = "FileChooser.fileSizeHeaderText";