@@ -47,7 +47,8 @@ private static SSLSocketFactory getSslSocketFactoryForCertPath(@Nullable String
4747 return buildSslSocketFactory (trustManager );
4848 }
4949
50- private static HttpURLConnection setupUrlConnection (String urlStr , String httpMethod , Map <String , String > headers ) throws Exception {
50+ private static HttpURLConnection setupUrlConnection (
51+ String urlStr , String httpMethod , Map <String , String > headers ) throws Exception {
5152 try {
5253 HttpURLConnection urlConnection = (HttpURLConnection ) new URL (urlStr ).openConnection ();
5354 urlConnection .setRequestMethod (httpMethod );
@@ -64,10 +65,8 @@ private static HttpURLConnection setupUrlConnection(String urlStr, String httpMe
6465 }
6566
6667 /** Fetch a string from a remote server. */
67- public String fetchString (String httpMethod ,
68- String urlStr ,
69- Map <String , String > headers ,
70- @ Nullable String certPath ) {
68+ public String fetchString (
69+ String httpMethod , String urlStr , Map <String , String > headers , @ Nullable String certPath ) {
7170
7271 try {
7372 HttpURLConnection httpUrlConnection = setupUrlConnection (urlStr , httpMethod , headers );
@@ -83,12 +82,7 @@ public String fetchString(String httpMethod,
8382 if (responseCode != 200 ) {
8483 logger .log (
8584 Level .FINE ,
86- "Error response from "
87- + urlStr
88- + " code ("
89- + responseCode
90- + ") text "
91- + responseBody );
85+ "Error response from " + urlStr + " code (" + responseCode + ") text " + responseBody );
9286 return "" ;
9387 }
9488 return responseBody ;
0 commit comments