Remove Nullable from methods that return non-null value
MODIFY
instrumentation/jaxrs/jaxrs-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v1_0/JaxrsCodeAttributesExtractor.java
instrumentation/jaxrs/jaxrs-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v1_0/JaxrsCodeAttributesExtractor.java
@@ -10,12 +10,12 @@ import org.checkerframework.checker.nullness.qual.Nullable;
public class JaxrsCodeAttributesExtractor extends CodeAttributesExtractor<HandlerData, Void> {
@Override
- protected @Nullable Class<?> codeClass(HandlerData handlerData) {
+ protected Class<?> codeClass(HandlerData handlerData) {
return handlerData.codeClass();
}
@Override
- protected @Nullable String methodName(HandlerData handlerData) {
+ protected String methodName(HandlerData handlerData) {
return handlerData.methodName();
}

MODIFY
instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v2_0/JaxrsCodeAttributesExtractor.java
instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v2_0/JaxrsCodeAttributesExtractor.java
@@ -10,12 +10,12 @@ import org.checkerframework.checker.nullness.qual.Nullable;
public class JaxrsCodeAttributesExtractor extends CodeAttributesExtractor<HandlerData, Void> {
@Override
- protected @Nullable Class<?> codeClass(HandlerData handlerData) {
+ protected Class<?> codeClass(HandlerData handlerData) {
return handlerData.codeClass();
}
@Override
- protected @Nullable String methodName(HandlerData handlerData) {
+ protected String methodName(HandlerData handlerData) {
return handlerData.methodName();
}

MODIFY
instrumentation/spring/spring-ws-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/ws/SpringWsCodeAttributesExtractor.java
instrumentation/spring/spring-ws-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/ws/SpringWsCodeAttributesExtractor.java
@@ -12,12 +12,12 @@ public class SpringWsCodeAttributesExtractor
extends CodeAttributesExtractor<SpringWsRequest, Void> {
@Override
- protected @Nullable Class<?> codeClass(SpringWsRequest request) {
+ protected Class<?> codeClass(SpringWsRequest request) {
return request.getCodeClass();
}
@Override
- protected @Nullable String methodName(SpringWsRequest request) {
+ protected String methodName(SpringWsRequest request) {
return request.getMethodName();
}

Remove Nullable from methods that return non-null value (#3843)