changeset 4825:f4fe86bba8a2

7116993: fix warnings in java.applet Reviewed-by: art, smarks Contributed-by: Danesh Dadachanji <ddadacha@redhat.com>
author smarks
date Mon, 05 Dec 2011 16:30:32 -0800
parents ca383e32deaf
children 85363edbc92f
files src/share/classes/java/applet/Applet.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/applet/Applet.java	Tue Dec 06 08:39:02 2011 +0900
+++ b/src/share/classes/java/applet/Applet.java	Mon Dec 05 16:30:32 2011 -0800
@@ -117,7 +117,7 @@
                 s.checkPermission(new AWTPermission("setAppletStub"));
             }
         }
-        this.stub = (AppletStub)stub;
+        this.stub = stub;
     }
 
     /**
@@ -210,6 +210,7 @@
      * @param   width    the new requested width for the applet.
      * @param   height   the new requested height for the applet.
      */
+    @SuppressWarnings("deprecation")
     public void resize(int width, int height) {
         Dimension d = size();
         if ((d.width != width) || (d.height != height)) {
@@ -225,6 +226,7 @@
      *
      * @param   d   an object giving the new width and height.
      */
+    @SuppressWarnings("deprecation")
     public void resize(Dimension d) {
         resize(d.width, d.height);
     }