Skip to content

Commit 1465440

Browse files
committed
fix: clean up imports and formatting in AsyncHttpClient classes
1 parent afb34c9 commit 1465440

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

instrumentation/async-http-client/async-http-client-1.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v1_8/AsyncHttpClientHttpAttributesGetter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
package io.opentelemetry.javaagent.instrumentation.asynchttpclient.v1_8;
77

8+
import static java.util.Collections.emptyList;
9+
810
import com.ning.http.client.Request;
911
import com.ning.http.client.Response;
1012
import io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter;
1113
import java.net.MalformedURLException;
1214
import java.util.List;
1315
import javax.annotation.Nullable;
1416

15-
import static java.util.Collections.emptyList;
16-
1717
final class AsyncHttpClientHttpAttributesGetter
1818
implements HttpClientAttributesGetter<Request, Response> {
1919

instrumentation/async-http-client/async-http-client-1.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v1_8/AsyncHttpClientInstrumentationModule.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public AsyncHttpClientInstrumentationModule() {
2222

2323
@Override
2424
public List<TypeInstrumentation> typeInstrumentations() {
25-
return asList(
26-
new AsyncHttpProviderInstrumentation(),
27-
new ResponseInstrumentation());
25+
return asList(new AsyncHttpProviderInstrumentation(), new ResponseInstrumentation());
2826
}
2927

3028
@Override

instrumentation/async-http-client/async-http-client-1.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v1_8/AsyncHttpClientSingletons.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public final class AsyncHttpClientSingletons {
2525

2626
INSTRUMENTER =
2727
JavaagentHttpClientInstrumenters.create(
28-
INSTRUMENTATION_NAME,
29-
httpAttributesGetter,
30-
HttpHeaderSetter.INSTANCE);
28+
INSTRUMENTATION_NAME, httpAttributesGetter, HttpHeaderSetter.INSTANCE);
3129

3230
ASYNC_HANDLER_DATA = VirtualField.find(AsyncHandler.class, AsyncHandlerData.class);
3331
}

instrumentation/async-http-client/async-http-client-1.8/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v1_8/AsyncHttpClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientInstrumentationExtension;
2020
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
2121
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientTestOptions;
22+
import java.io.IOException;
2223
import java.net.URI;
2324
import java.util.HashSet;
2425
import java.util.Map;
2526
import java.util.Set;
26-
import java.io.IOException;
2727
import java.util.concurrent.ExecutionException;
2828
import org.junit.jupiter.api.extension.RegisterExtension;
2929

instrumentation/async-http-client/async-http-client-1.9/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v1_9/AsyncHttpClientHttpAttributesGetter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
package io.opentelemetry.javaagent.instrumentation.asynchttpclient.v1_9;
77

8+
import static java.util.Collections.emptyList;
9+
810
import com.ning.http.client.Request;
911
import com.ning.http.client.Response;
1012
import io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter;
1113
import java.util.List;
1214
import javax.annotation.Nullable;
1315

14-
import static java.util.Collections.emptyList;
15-
1616
final class AsyncHttpClientHttpAttributesGetter
1717
implements HttpClientAttributesGetter<Request, Response> {
1818

0 commit comments

Comments
 (0)