提交 a571f6a0 编写于 作者: S smarks

7116993: fix warnings in java.applet

Reviewed-by: art, smarks
Contributed-by: NDanesh Dadachanji <ddadacha@redhat.com>
上级 5edbe417
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册