changeset 9228:aa95d8422cb6

8033222: Fix serial lint warnings in sun.awt.* Reviewed-by: alanb
author darcy
date Mon, 03 Feb 2014 10:21:58 -0800
parents 54bbc501d90e
children fb89dc4fe8da
files src/share/classes/sun/awt/CustomCursor.java src/share/classes/sun/awt/FontConfiguration.java src/share/classes/sun/awt/TimedWindowEvent.java src/share/classes/sun/awt/dnd/SunDropTargetEvent.java src/share/classes/sun/awt/event/IgnorePaintEvent.java src/share/classes/sun/awt/image/BadDepthException.java src/share/classes/sun/awt/image/ImageAccessException.java src/share/classes/sun/awt/image/ImageFormatException.java src/share/classes/sun/awt/image/PNGImageDecoder.java src/share/classes/sun/awt/shell/DefaultShellFolder.java src/share/classes/sun/awt/shell/ShellFolder.java
diffstat 11 files changed, 21 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/awt/CustomCursor.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/FontConfiguration.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/TimedWindowEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/event/IgnorePaintEvent.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/image/BadDepthException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/image/ImageAccessException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/image/ImageFormatException.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/image/PNGImageDecoder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/shell/DefaultShellFolder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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/src/share/classes/sun/awt/shell/ShellFolder.java	Mon Feb 03 10:05:56 2014 -0800
+++ b/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";