jdk/src/java.base/share/classes/java/util/TimeZone.java
changeset 38339 65b26013c786
parent 37593 824750ada3d6
child 37781 71ed5645f17c
--- a/jdk/src/java.base/share/classes/java/util/TimeZone.java	Thu Apr 21 15:04:00 2016 -0400
+++ b/jdk/src/java.base/share/classes/java/util/TimeZone.java	Fri Apr 22 01:04:01 2016 -0700
@@ -660,14 +660,12 @@
     private static synchronized TimeZone setDefaultZone() {
         TimeZone tz;
         // get the time zone ID from the system properties
-        String zoneID = AccessController.doPrivileged(
-                new GetPropertyAction("user.timezone"));
+        String zoneID = GetPropertyAction.getProperty("user.timezone");
 
         // if the time zone ID is not set (yet), perform the
         // platform to Java time zone ID mapping.
         if (zoneID == null || zoneID.isEmpty()) {
-            String javaHome = AccessController.doPrivileged(
-                    new GetPropertyAction("java.home"));
+            String javaHome = GetPropertyAction.getProperty("java.home");
             try {
                 zoneID = getSystemTimeZoneID(javaHome);
                 if (zoneID == null) {