8037174: Fix serial lint warnings in sun.applet
authordarcy
Wed, 12 Mar 2014 09:16:03 -0700
changeset 23642 3ac83ad3fb6a
parent 23641 669af2b1a6d0
child 23643 7e8d79551a13
8037174: Fix serial lint warnings in sun.applet Reviewed-by: alanb, pchelko
jdk/src/share/classes/sun/applet/AppletEvent.java
jdk/src/share/classes/sun/applet/AppletIOException.java
jdk/src/share/classes/sun/applet/AppletIllegalArgumentException.java
jdk/src/share/classes/sun/applet/AppletPanel.java
jdk/src/share/classes/sun/applet/AppletProps.java
jdk/src/share/classes/sun/applet/AppletSecurityException.java
jdk/src/share/classes/sun/applet/AppletViewer.java
jdk/src/share/classes/sun/applet/Main.java
--- a/jdk/src/share/classes/sun/applet/AppletEvent.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletEvent.java	Wed Mar 12 09:16:03 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 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,7 +33,7 @@
  *
  * @author  Sunita Mani
  */
-
+@SuppressWarnings("serial") // JDK-implementation class
 public class AppletEvent extends EventObject {
 
     private Object arg;
--- a/jdk/src/share/classes/sun/applet/AppletIOException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletIOException.java	Wed Mar 12 09:16:03 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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 @@
  *
  * @author      Koji Uno
  */
+@SuppressWarnings("serial") // JDK implementation class
 public
 class AppletIOException extends IOException {
     private String key = null;
--- a/jdk/src/share/classes/sun/applet/AppletIllegalArgumentException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletIllegalArgumentException.java	Wed Mar 12 09:16:03 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -30,6 +30,7 @@
  *
  * @author      Arthur van Hoff
  */
+@SuppressWarnings("serial") // JDK implementation class
 public
 class AppletIllegalArgumentException extends IllegalArgumentException {
     private String key = null;
--- a/jdk/src/share/classes/sun/applet/AppletPanel.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletPanel.java	Wed Mar 12 09:16:03 2014 -0700
@@ -62,6 +62,7 @@
  *
  * @author      Arthur van Hoff
  */
+@SuppressWarnings("serial") // JDK implementation class
 public
 abstract class AppletPanel extends Panel implements AppletStub, Runnable {
 
--- a/jdk/src/share/classes/sun/applet/AppletProps.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletProps.java	Wed Mar 12 09:16:03 2014 -0700
@@ -37,6 +37,7 @@
 
 import sun.security.action.*;
 
+@SuppressWarnings("serial") // JDK implementation class
 class AppletProps extends Frame {
 
     TextField proxyHost;
@@ -194,7 +195,7 @@
 
 /* 4066432 */
 /* Dialog class to display property-related errors to user */
-
+@SuppressWarnings("serial") // JDK implementation class
 class AppletPropsErrorDialog extends Dialog {
     public AppletPropsErrorDialog(Frame parent, String title, String message,
                 String buttonText) {
--- a/jdk/src/share/classes/sun/applet/AppletSecurityException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletSecurityException.java	Wed Mar 12 09:16:03 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 1998, 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
@@ -30,6 +30,7 @@
  *
  * @author      Arthur van Hoff
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public
 class AppletSecurityException extends SecurityException {
     private String key = null;
--- a/jdk/src/share/classes/sun/applet/AppletViewer.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletViewer.java	Wed Mar 12 09:16:03 2014 -0700
@@ -46,6 +46,7 @@
 /**
  * A frame to show the applet tag in.
  */
+@SuppressWarnings("serial") // JDK-implementation class
 class TextFrame extends Frame {
 
     /**
@@ -115,6 +116,7 @@
  * (The document named appletviewertags.html in the JDK's docs/tooldocs directory,
  *  once the JDK docs have been installed.)
  */
+@SuppressWarnings("serial") // JDK implementation class
 public class AppletViewer extends Frame implements AppletContext,
                                                    Printable {
 
--- a/jdk/src/share/classes/sun/applet/Main.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/jdk/src/share/classes/sun/applet/Main.java	Wed Mar 12 09:16:03 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2013, 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
@@ -512,6 +512,7 @@
         return amh.getMessage(key, arg0, arg1, arg2);
     }
 
+    @SuppressWarnings("serial") // JDK implementation class
     class ParseException extends RuntimeException
     {
         public ParseException(String msg) {