From 95afca84d251bb18b9e9f898ba5be2cf7c79c0ac Mon Sep 17 00:00:00 2001 From: Danesh Dadachanji Date: Mon, 5 Dec 2011 16:30:32 -0800 Subject: [PATCH] 7116993: fix warnings in java.applet Reviewed-by: art, smarks --- jdk/src/share/classes/java/applet/Applet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/applet/Applet.java b/jdk/src/share/classes/java/applet/Applet.java index 1abacab80cf..4174029eba5 100644 --- a/jdk/src/share/classes/java/applet/Applet.java +++ b/jdk/src/share/classes/java/applet/Applet.java @@ -117,7 +117,7 @@ public class Applet extends Panel { s.checkPermission(new AWTPermission("setAppletStub")); } } - this.stub = (AppletStub)stub; + this.stub = stub; } /** @@ -210,6 +210,7 @@ public class Applet extends Panel { * @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 @@ public class Applet extends Panel { * * @param d an object giving the new width and height. */ + @SuppressWarnings("deprecation") public void resize(Dimension d) { resize(d.width, d.height); }