< prev index next >

src/java.base/share/classes/sun/net/www/MimeLauncher.java

Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs

*** 25,34 **** --- 25,35 ---- package sun.net.www; import java.net.URL; import java.io.*; import java.util.StringTokenizer; + import sun.security.action.GetPropertyAction; class MimeLauncher extends Thread { java.net.URLConnection uc; MimeEntry m; String genericTempFileTemplate;
*** 180,191 **** execPath = str; return true; } String execPathList; ! execPathList = java.security.AccessController.doPrivileged( ! new sun.security.action.GetPropertyAction("exec.path")); if (execPathList == null) { // exec.path property not set return false; } --- 181,191 ---- execPath = str; return true; } String execPathList; ! execPathList = GetPropertyAction.getProperty("exec.path"); if (execPathList == null) { // exec.path property not set return false; }
< prev index next >