< prev index next >

src/java.base/solaris/classes/sun/nio/fs/SolarisFileSystem.java

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

*** 26,36 **** package sun.nio.fs; import java.nio.file.*; import java.io.IOException; import java.util.*; - import java.security.AccessController; import sun.security.action.GetPropertyAction; import static sun.nio.fs.SolarisNativeDispatcher.*; /** * Solaris implementation of FileSystem --- 26,35 ----
*** 41,52 **** SolarisFileSystem(UnixFileSystemProvider provider, String dir) { super(provider, dir); // check os.version ! String osversion = AccessController ! .doPrivileged(new GetPropertyAction("os.version")); String[] vers = Util.split(osversion, '.'); assert vers.length >= 2; int majorVersion = Integer.parseInt(vers[0]); int minorVersion = Integer.parseInt(vers[1]); this.hasSolaris11Features = --- 40,50 ---- SolarisFileSystem(UnixFileSystemProvider provider, String dir) { super(provider, dir); // check os.version ! String osversion = GetPropertyAction.getProperty("os.version"); String[] vers = Util.split(osversion, '.'); assert vers.length >= 2; int majorVersion = Integer.parseInt(vers[0]); int minorVersion = Integer.parseInt(vers[1]); this.hasSolaris11Features =
< prev index next >