Fix CI
Resolves
MODIFY
instrumentation/apache-httpclient/apache-httpclient-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apachehttpclient/v5_0/AbstractApacheHttpClientTest.java
instrumentation/apache-httpclient/apache-httpclient-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apachehttpclient/v5_0/AbstractApacheHttpClientTest.java
@@ -112,6 +112,9 @@ abstract class AbstractApacheHttpClientTest<T extends HttpRequest>
return response.getCode();
}
+ // Apache HttpClient 5.2 introduced Timeout#of(Duration), which causes errorprone failure when
+ // running testLatestDeps
+ @SuppressWarnings("PreferJavaTimeOverload")
static Timeout getTimeout(Duration duration) {
return Timeout.of(duration.toMillis(), TimeUnit.MILLISECONDS);
}

Fix CI (#7138)

Resolves #7139