src/share/classes/sun/applet/AppletViewerPanel.java
Print this page
rev 10175 : 8042872: Fix raw and unchecked warnings in sun.applet
Reviewed-by:
*** 57,77 ****
URL baseURL;
/**
* The attributes of the applet.
*/
! Hashtable atts;
/*
* JDK 1.1 serialVersionUID
*/
private static final long serialVersionUID = 8890989370785545619L;
/**
* Construct an applet viewer and start the applet.
*/
! AppletViewerPanel(URL documentURL, Hashtable atts) {
this.documentURL = documentURL;
this.atts = atts;
String att = getParameter("codebase");
if (att != null) {
--- 57,77 ----
URL baseURL;
/**
* The attributes of the applet.
*/
! Hashtable<String, String> atts;
/*
* JDK 1.1 serialVersionUID
*/
private static final long serialVersionUID = 8890989370785545619L;
/**
* Construct an applet viewer and start the applet.
*/
! AppletViewerPanel(URL documentURL, Hashtable<String, String> atts) {
this.documentURL = documentURL;
this.atts = atts;
String att = getParameter("codebase");
if (att != null) {
*** 103,113 ****
/**
* Get an applet parameter.
*/
public String getParameter(String name) {
! return (String)atts.get(name.toLowerCase());
}
/**
* Get the document url.
*/
--- 103,113 ----
/**
* Get an applet parameter.
*/
public String getParameter(String name) {
! return atts.get(name.toLowerCase());
}
/**
* Get the document url.
*/