< prev index next >

src/java.base/share/classes/java/io/File.java

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

*** 29,39 **** import java.net.URL; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.util.List; import java.util.ArrayList; - import java.security.AccessController; import java.security.SecureRandom; import java.nio.file.Path; import java.nio.file.FileSystems; import sun.security.action.GetPropertyAction; --- 29,38 ----
*** 1894,1905 **** private static class TempDirectory { private TempDirectory() { } // temporary directory location ! private static final File tmpdir = new File(AccessController ! .doPrivileged(new GetPropertyAction("java.io.tmpdir"))); static File location() { return tmpdir; } // file name generation --- 1893,1904 ---- private static class TempDirectory { private TempDirectory() { } // temporary directory location ! private static final File tmpdir = new File( ! GetPropertyAction.getProperty("java.io.tmpdir")); static File location() { return tmpdir; } // file name generation
< prev index next >