< prev index next >

src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java

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

*** 25,35 **** package sun.nio.fs; import java.nio.file.attribute.*; import java.util.concurrent.TimeUnit; - import java.security.AccessController; import jdk.internal.misc.Unsafe; import sun.security.action.GetPropertyAction; import static sun.nio.fs.WindowsNativeDispatcher.*; import static sun.nio.fs.WindowsConstants.*; --- 25,34 ----
*** 113,124 **** private static final long WINDOWS_EPOCH_IN_MICROSECONDS = -11644473600000000L; // indicates if accurate metadata is required (interesting on NTFS only) private static final boolean ensureAccurateMetadata; static { ! String propValue = AccessController.doPrivileged( ! new GetPropertyAction("sun.nio.fs.ensureAccurateMetadata", "false")); ensureAccurateMetadata = (propValue.length() == 0) ? true : Boolean.valueOf(propValue); } // attributes --- 112,123 ---- private static final long WINDOWS_EPOCH_IN_MICROSECONDS = -11644473600000000L; // indicates if accurate metadata is required (interesting on NTFS only) private static final boolean ensureAccurateMetadata; static { ! String propValue = GetPropertyAction ! .getProperty("sun.nio.fs.ensureAccurateMetadata", "false"); ensureAccurateMetadata = (propValue.length() == 0) ? true : Boolean.valueOf(propValue); } // attributes
< prev index next >