http-client-branch: rename jdk.internal.httpclient.disableHostnameVerification property http-client-branch
authorchegar
Fri, 09 Mar 2018 17:59:11 +0000
branchhttp-client-branch
changeset 56272 7394452786ba
parent 56271 e1eab097c6d7
child 56273 329e410c9a01
http-client-branch: rename jdk.internal.httpclient.disableHostnameVerification property
src/java.net.http/share/classes/jdk/internal/net/http/common/Utils.java
test/jdk/java/net/httpclient/ssltest/CertificateTest.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/common/Utils.java	Fri Mar 09 17:36:02 2018 +0000
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/common/Utils.java	Fri Mar 09 17:59:11 2018 +0000
@@ -93,7 +93,7 @@
             hostnameVerificationDisabledValue();
 
     private static boolean hostnameVerificationDisabledValue() {
-        String prop = getProperty("jdk.internal.http.disableHostnameVerification");
+        String prop = getProperty("jdk.internal.httpclient.disableHostnameVerification");
         if (prop == null)
             return false;
         return prop.isEmpty() ?  true : Boolean.parseBoolean(prop);
@@ -397,7 +397,7 @@
 
     public static int getIntegerProperty(String name, int defaultValue) {
         return AccessController.doPrivileged((PrivilegedAction<Integer>) () ->
-                Integer.parseInt(System.getProperty(name, String.valueOf(defaultValue)));
+                Integer.parseInt(System.getProperty(name, String.valueOf(defaultValue))));
     }
 
     public static SSLParameters copySSLParameters(SSLParameters p) {
--- a/test/jdk/java/net/httpclient/ssltest/CertificateTest.java	Fri Mar 09 17:36:02 2018 +0000
+++ b/test/jdk/java/net/httpclient/ssltest/CertificateTest.java	Fri Mar 09 17:59:11 2018 +0000
@@ -37,16 +37,16 @@
  * @run main/othervm CertificateTest good.keystore expectSuccess
  * @run main/othervm CertificateTest bad.keystore expectFailure
  * @run main/othervm
- *      -Djdk.internal.http.disableHostnameVerification
+ *      -Djdk.internal.httpclient.disableHostnameVerification
  *       CertificateTest bad.keystore expectSuccess
  * @run main/othervm
- *      -Djdk.internal.http.disableHostnameVerification=true
+ *      -Djdk.internal.httpclient.disableHostnameVerification=true
  *       CertificateTest bad.keystore expectSuccess
  * @run main/othervm
- *      -Djdk.internal.http.disableHostnameVerification=false
+ *      -Djdk.internal.httpclient.disableHostnameVerification=false
  *       CertificateTest bad.keystore expectFailure
  * @run main/othervm
- *      -Djdk.internal.http.disableHostnameVerification=xxyyzz
+ *      -Djdk.internal.httpclient.disableHostnameVerification=xxyyzz
  *       CertificateTest bad.keystore expectFailure
  */