changeset 9605:7f7a0dcd9b41

8037174: Fix serial lint warnings in sun.applet Reviewed-by: alanb, pchelko
author darcy
date Wed, 12 Mar 2014 09:16:03 -0700
parents 2554d3fc7753
children add67659a27c
files src/share/classes/sun/applet/AppletEvent.java src/share/classes/sun/applet/AppletIOException.java src/share/classes/sun/applet/AppletIllegalArgumentException.java src/share/classes/sun/applet/AppletPanel.java src/share/classes/sun/applet/AppletProps.java src/share/classes/sun/applet/AppletSecurityException.java src/share/classes/sun/applet/AppletViewer.java src/share/classes/sun/applet/Main.java
diffstat 8 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/applet/AppletEvent.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletIOException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletIllegalArgumentException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletPanel.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletProps.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletSecurityException.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/AppletViewer.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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/src/share/classes/sun/applet/Main.java	Wed Mar 12 16:59:11 2014 +0400
+++ b/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) {