<AWT Dev> JDK 9 RFR of JDK-8033222: Fix serial lint warnings in sun.awt.*
Joe Darcy
joe.darcy at oracle.com
Wed Jan 29 21:53:03 PST 2014
Hello,
As another installment of addressing the serial warnings in the client
libraries, please review my changes for:
JDK-8033222: Fix serial lint warnings in sun.awt.*
http://cr.openjdk.java.net/~darcy/8033222.0/
Patch below.
Thanks,
-Joe
--- old/src/share/classes/sun/awt/CustomCursor.java 2014-01-29
21:49:33.000000000 -0800
+++ new/src/share/classes/sun/awt/CustomCursor.java 2014-01-29
21:49:33.000000000 -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
*/
+ at SuppressWarnings("serial") // JDK-implementation class
public abstract class CustomCursor extends Cursor {
protected Image image;
--- old/src/share/classes/sun/awt/FontConfiguration.java 2014-01-29
21:49:33.000000000 -0800
+++ new/src/share/classes/sun/awt/FontConfiguration.java 2014-01-29
21:49:33.000000000 -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);
--- old/src/share/classes/sun/awt/TimedWindowEvent.java 2014-01-29
21:49:34.000000000 -0800
+++ new/src/share/classes/sun/awt/TimedWindowEvent.java 2014-01-29
21:49:34.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class TimedWindowEvent extends WindowEvent {
private long time;
--- old/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java 2014-01-29
21:49:34.000000000 -0800
+++ new/src/share/classes/sun/awt/dnd/SunDropTargetEvent.java 2014-01-29
21:49:34.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class SunDropTargetEvent extends MouseEvent {
public static final int MOUSE_DROPPED = MouseEvent.MOUSE_RELEASED;
--- old/src/share/classes/sun/awt/event/IgnorePaintEvent.java 2014-01-29
21:49:35.000000000 -0800
+++ new/src/share/classes/sun/awt/event/IgnorePaintEvent.java 2014-01-29
21:49:35.000000000 -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.
*
*/
+ at SuppressWarnings("serial") // JDK-implementation class
public class IgnorePaintEvent extends PaintEvent {
public IgnorePaintEvent(Component source, int id, Rectangle
updateRect) {
super(source, id, updateRect);
--- old/src/share/classes/sun/awt/image/BadDepthException.java
2014-01-29 21:49:35.000000000 -0800
+++ new/src/share/classes/sun/awt/image/BadDepthException.java
2014-01-29 21:49:35.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class BadDepthException extends Exception {
public BadDepthException() {
}
--- old/src/share/classes/sun/awt/image/ImageAccessException.java
2014-01-29 21:49:36.000000000 -0800
+++ new/src/share/classes/sun/awt/image/ImageAccessException.java
2014-01-29 21:49:36.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class ImageAccessException extends Exception {
public ImageAccessException(String s) {
super(s);
--- old/src/share/classes/sun/awt/image/ImageFormatException.java
2014-01-29 21:49:36.000000000 -0800
+++ new/src/share/classes/sun/awt/image/ImageFormatException.java
2014-01-29 21:49:36.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class ImageFormatException extends Exception {
public ImageFormatException(String s) {
super(s);
--- old/src/share/classes/sun/awt/image/PNGImageDecoder.java 2014-01-29
21:49:37.000000000 -0800
+++ new/src/share/classes/sun/awt/image/PNGImageDecoder.java 2014-01-29
21:49:37.000000000 -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); }
}
--- old/src/share/classes/sun/awt/shell/DefaultShellFolder.java
2014-01-29 21:49:38.000000000 -0800
+++ new/src/share/classes/sun/awt/shell/DefaultShellFolder.java
2014-01-29 21:49:37.000000000 -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
*/
-
+ at SuppressWarnings("serial") // JDK-implementation class
class DefaultShellFolder extends ShellFolder {
/**
--- old/src/share/classes/sun/awt/shell/ShellFolder.java 2014-01-29
21:49:38.000000000 -0800
+++ new/src/share/classes/sun/awt/shell/ShellFolder.java 2014-01-29
21:49:38.000000000 -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
*/
-
+ at 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";
More information about the awt-dev
mailing list