http-client-branch: review comment: remove testing specific property check http-client-branch
authorchegar
Thu, 30 Nov 2017 11:28:47 +0000
branchhttp-client-branch
changeset 55924 edfab012adb3
parent 55923 67a9df429e0b
child 55925 81aa2f98ea52
http-client-branch: review comment: remove testing specific property check
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/Utils.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/Utils.java	Thu Nov 30 11:03:23 2017 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/Utils.java	Thu Nov 30 11:28:47 2017 +0000
@@ -69,17 +69,18 @@
         assert enabled = true;
         ASSERTIONSENABLED = enabled;
     }
-    public static final boolean TESTING;
-    static {
-        if (ASSERTIONSENABLED) {
-            PrivilegedAction<String> action = () -> System.getProperty("test.src");
-            TESTING = AccessController.doPrivileged(action) != null;
-        } else TESTING = false;
-    }
+//    public static final boolean TESTING;
+//    static {
+//        if (ASSERTIONSENABLED) {
+//            PrivilegedAction<String> action = () -> System.getProperty("test.src");
+//            TESTING = AccessController.doPrivileged(action) != null;
+//        } else TESTING = false;
+//    }
     public static final boolean DEBUG = // Revisit: temporary dev flag.
             getBooleanProperty(DebugLogger.HTTP_NAME, false);
     public static final boolean DEBUG_HPACK = // Revisit: temporary dev flag.
             getBooleanProperty(DebugLogger.HPACK_NAME, false);
+    public static final boolean TESTING = DEBUG;
 
     /**
      * Allocated buffer size. Must never be higher than 16K. But can be lower