Skip to content

Commit 19c0b8f

Browse files
committed
Spotless Apply
1 parent b2c5545 commit 19c0b8f

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

aws-resources/src/main/java/io/opentelemetry/contrib/aws/resource/SimpleHttpClient.java

+5-11
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)