Browse Source

Suppress warnings in Gradle build

pull/35814/head
Sam Brannen 1 month ago
parent
commit
1714a00492
  1. 4
      spring-web/src/test/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactoryTests.java

4
spring-web/src/test/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactoryTests.java

@ -61,7 +61,7 @@ class HttpComponentsClientHttpRequestFactoryTests extends AbstractHttpRequestFac
} }
@Test @Test
@SuppressWarnings("removal") @SuppressWarnings({ "removal", "deprecation" })
void assertCustomConfig() throws Exception { void assertCustomConfig() throws Exception {
HttpClient httpClient = HttpClientBuilder.create().build(); HttpClient httpClient = HttpClientBuilder.create().build();
HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory(httpClient); HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory(httpClient);
@ -103,7 +103,7 @@ class HttpComponentsClientHttpRequestFactoryTests extends AbstractHttpRequestFac
} }
@Test @Test
@SuppressWarnings("removal") @SuppressWarnings({ "removal", "deprecation" })
void localSettingsOverrideClientDefaultSettings() throws Exception { void localSettingsOverrideClientDefaultSettings() throws Exception {
RequestConfig defaultConfig = RequestConfig.custom() RequestConfig defaultConfig = RequestConfig.custom()
.setConnectTimeout(1234, MILLISECONDS) .setConnectTimeout(1234, MILLISECONDS)

Loading…
Cancel
Save