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

Print this page
rev 10175 : 8042872: Fix raw and unchecked warnings in sun.applet
Reviewed-by:

*** 103,115 **** void apply() { String proxyHostValue = proxyHost.getText().trim(); String proxyPortValue = proxyPort.getText().trim(); // Get properties ! final Properties props = (Properties) AccessController.doPrivileged( ! new PrivilegedAction() { ! public Object run() { return System.getProperties(); } }); if (proxyHostValue.length() != 0) { --- 103,115 ---- void apply() { String proxyHostValue = proxyHost.getText().trim(); String proxyPortValue = proxyPort.getText().trim(); // Get properties ! final Properties props = AccessController.doPrivileged( ! new PrivilegedAction<Properties>() { ! public Properties run() { return System.getProperties(); } }); if (proxyHostValue.length() != 0) {
*** 146,156 **** } // Save properties try { reset(); ! AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { File dotAV = Main.theUserPropertiesFile; FileOutputStream out = new FileOutputStream(dotAV); Properties avProps = new Properties(); for (int i = 0; i < Main.avDefaultUserProps.length; i++) { --- 146,156 ---- } // Save properties try { reset(); ! AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws IOException { File dotAV = Main.theUserPropertiesFile; FileOutputStream out = new FileOutputStream(dotAV); Properties avProps = new Properties(); for (int i = 0; i < Main.avDefaultUserProps.length; i++) {