src/share/classes/sun/applet/AppletProps.java

Print this page

        

@@ -73,16 +73,16 @@
     void reset() {
         AppletSecurity security = (AppletSecurity) System.getSecurityManager();
         if (security != null)
             security.reset();
 
-        String proxyhost = (String) AccessController.doPrivileged(
+        String proxyhost = AccessController.doPrivileged(
                 new GetPropertyAction("http.proxyHost"));
-        String proxyport = (String)  AccessController.doPrivileged(
+        String proxyport = AccessController.doPrivileged(
                 new GetPropertyAction("http.proxyPort"));
 
-        Boolean tmp = (Boolean) AccessController.doPrivileged(
+        Boolean tmp = AccessController.doPrivileged(
                 new GetBooleanAction("package.restrict.access.sun"));
 
         boolean packageRestrict = tmp.booleanValue();
         if (packageRestrict) {
            accessMode.select(amh.getMessage("choice.class.item.restricted"));