Skip to content

Commit 583e063

Browse files
committed
renames class files to avoid AbbreviationAsWordInName checkstyle rule
1 parent e1a29dc commit 583e063

7 files changed

+21
-28
lines changed
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import static io.opentelemetry.javaagent.bootstrap.Java8BytecodeBridge.currentContext;
99
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasSuperType;
10-
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActiveJHttpServerConnectionSingletons.instrumenter;
10+
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActivejHttpServerConnectionSingletons.instrumenter;
1111
import static net.bytebuddy.matcher.ElementMatchers.isInterface;
1212
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
1313
import static net.bytebuddy.matcher.ElementMatchers.named;
@@ -29,8 +29,7 @@
2929
import net.bytebuddy.description.type.TypeDescription;
3030
import net.bytebuddy.matcher.ElementMatcher;
3131

32-
@SuppressWarnings("AbbreviationAsWordInName")
33-
public class ActiveJHttpServerConnectionInstrumentation implements TypeInstrumentation {
32+
public class ActivejHttpServerConnectionInstrumentation implements TypeInstrumentation {
3433

3534
@Override
3635
public ElementMatcher<TypeDescription> typeMatcher() {
@@ -90,7 +89,7 @@ public static void methodExit(
9089
if (responsePromise.isException()) {
9190
error = responsePromise.getException();
9291
}
93-
httpResponse = ActiveJHttpServerHelper.createResponse(error, traceparent, httpResponse);
92+
httpResponse = ActivejHttpServerHelper.createResponse(error, traceparent, httpResponse);
9493
instrumenter().end(context, httpRequest, httpResponse, error);
9594
responsePromise = Promise.of(httpResponse);
9695
} else if (throwable != null) {
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,20 @@
1313
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
1414
import java.util.List;
1515

16-
@SuppressWarnings("AbbreviationAsWordInName")
1716
@AutoService(InstrumentationModule.class)
18-
public class ActiveJHttpServerConnectionInstrumentationModule extends InstrumentationModule {
17+
public class ActivejHttpServerConnectionInstrumentationModule extends InstrumentationModule {
1918

20-
public ActiveJHttpServerConnectionInstrumentationModule() {
19+
public ActivejHttpServerConnectionInstrumentationModule() {
2120
super("activej-http", "activej-http-6.0");
2221
}
2322

2423
@Override
2524
public List<TypeInstrumentation> typeInstrumentations() {
26-
return singletonList(new ActiveJHttpServerConnectionInstrumentation());
25+
return singletonList(new ActivejHttpServerConnectionInstrumentation());
2726
}
2827

2928
@Override
3029
public void registerHelperResources(HelperResourceBuilder helperResourceBuilder) {
31-
helperResourceBuilder.register(ActiveJHttpServerHelper.class.getName());
30+
helperResourceBuilder.register(ActivejHttpServerHelper.class.getName());
3231
}
3332
}
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1111
import io.opentelemetry.javaagent.bootstrap.internal.JavaagentHttpServerInstrumenters;
1212

13-
@SuppressWarnings("AbbreviationAsWordInName")
14-
public class ActiveJHttpServerConnectionSingletons {
13+
public class ActivejHttpServerConnectionSingletons {
1514

1615
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.activej-http-6.0";
1716

@@ -21,13 +20,13 @@ public class ActiveJHttpServerConnectionSingletons {
2120
INSTRUMENTER =
2221
JavaagentHttpServerInstrumenters.create(
2322
INSTRUMENTATION_NAME,
24-
new ActiveJHttpServerHttpAttributesGetter(),
25-
ActiveJHttpServerHeaders.INSTANCE);
23+
new ActivejHttpServerHttpAttributesGetter(),
24+
ActivejHttpServerHeaders.INSTANCE);
2625
}
2726

2827
public static Instrumenter<HttpRequest, HttpResponse> instrumenter() {
2928
return INSTRUMENTER;
3029
}
3130

32-
private ActiveJHttpServerConnectionSingletons() {}
31+
private ActivejHttpServerConnectionSingletons() {}
3332
}
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
import java.util.Map;
1717
import java.util.stream.Collectors;
1818

19-
@SuppressWarnings("AbbreviationAsWordInName")
20-
enum ActiveJHttpServerHeaders implements ExtendedTextMapGetter<HttpRequest> {
19+
enum ActivejHttpServerHeaders implements ExtendedTextMapGetter<HttpRequest> {
2120
INSTANCE;
2221

2322
@Override
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
import io.activej.http.HttpResponse;
1313
import java.util.Map;
1414

15-
@SuppressWarnings("AbbreviationAsWordInName")
16-
public final class ActiveJHttpServerHelper {
15+
public final class ActivejHttpServerHelper {
1716

18-
private ActiveJHttpServerHelper() {
17+
private ActivejHttpServerHelper() {
1918
throw new UnsupportedOperationException();
2019
}
2120

Original file line numberDiff line numberDiff line change
@@ -12,30 +12,29 @@
1212
import java.util.List;
1313
import javax.annotation.Nullable;
1414

15-
@SuppressWarnings("AbbreviationAsWordInName")
16-
final class ActiveJHttpServerHttpAttributesGetter
15+
final class ActivejHttpServerHttpAttributesGetter
1716
implements HttpServerAttributesGetter<HttpRequest, HttpResponse> {
1817

1918
@Override
2019
public String getHttpRequestMethod(HttpRequest request) {
21-
return ActiveJHttpServerUtil.getHttpRequestMethod(request);
20+
return ActivejHttpServerUtil.getHttpRequestMethod(request);
2221
}
2322

2423
@Override
2524
public List<String> getHttpRequestHeader(HttpRequest request, String name) {
26-
return ActiveJHttpServerUtil.requestHeader(request, name);
25+
return ActivejHttpServerUtil.requestHeader(request, name);
2726
}
2827

2928
@Override
3029
public Integer getHttpResponseStatusCode(
3130
HttpRequest request, HttpResponse httpResponse, @Nullable Throwable error) {
32-
return ActiveJHttpServerUtil.getHttpResponseStatusCode(request, httpResponse, error);
31+
return ActivejHttpServerUtil.getHttpResponseStatusCode(request, httpResponse, error);
3332
}
3433

3534
@Override
3635
public List<String> getHttpResponseHeader(
3736
HttpRequest request, HttpResponse httpResponse, String name) {
38-
return ActiveJHttpServerUtil.getHttpResponseHeader(request, httpResponse, name);
37+
return ActivejHttpServerUtil.getHttpResponseHeader(request, httpResponse, name);
3938
}
4039

4140
@Override
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
import java.util.stream.Collectors;
1616
import javax.annotation.Nullable;
1717

18-
@SuppressWarnings("AbbreviationAsWordInName")
19-
public final class ActiveJHttpServerUtil {
18+
public final class ActivejHttpServerUtil {
2019

21-
private ActiveJHttpServerUtil() {
20+
private ActivejHttpServerUtil() {
2221
throw new UnsupportedOperationException();
2322
}
2423

0 commit comments

Comments
 (0)