Skip to content

Commit 6741860

Browse files
Excavator: Remove calls to deprecated APIs
1 parent 578c114 commit 6741860

File tree

16 files changed

+0
-32
lines changed

16 files changed

+0
-32
lines changed

client-config/src/main/java/com/palantir/conjure/java/client/config/ClientConfigurations.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public static ClientConfiguration of(ServiceConfiguration config) {
8585
* {@link TrustContextFactory}, filling in empty/absent configuration with the defaults specified as constants
8686
* in this class.
8787
*/
88-
@SuppressWarnings("for-rollout:deprecation")
8988
public static ClientConfiguration of(ServiceConfiguration config, TrustContextFactory factory) {
9089
TrustContext trustContext = factory.create(config.security());
9190
return ClientConfiguration.builder()
@@ -133,7 +132,6 @@ public static ClientConfiguration of(
133132
return of(uris, sslSocketFactory, trustManager, Optional.of(userAgent));
134133
}
135134

136-
@SuppressWarnings("for-rollout:deprecation")
137135
private static ClientConfiguration of(
138136
List<String> uris,
139137
SSLSocketFactory sslSocketFactory,

client-config/src/test/java/com/palantir/conjure/java/client/config/ClientConfigurationsTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public final class ClientConfigurationsTest {
4343

4444
private static final ImmutableList<String> uris = ImmutableList.of("uri");
4545

46-
@SuppressWarnings("for-rollout:deprecation")
4746
@Test
4847
public void testFromServiceConfig_fillsInDefaults() {
4948
ServiceConfiguration serviceConfig = ServiceConfiguration.builder()
@@ -112,7 +111,6 @@ public void meshProxy_exactlyOneUri() throws Exception {
112111
.hasMessage("If meshProxy is configured then uris must contain exactly 1 URI");
113112
}
114113

115-
@SuppressWarnings("for-rollout:deprecation")
116114
@Test
117115
public void overriding_tagged_metric_registry_is_convenient() {
118116
ServiceConfiguration serviceConfig = ServiceConfiguration.builder()
@@ -152,7 +150,6 @@ public void systemEnvUri() {
152150
.isNull();
153151
}
154152

155-
@SuppressWarnings("for-rollout:deprecation")
156153
@Test
157154
public void testProxyAddressIsNotResolved() {
158155
ProxySelector selector = ClientConfigurations.createProxySelector(ProxyConfiguration.of("localhost:80"));

conjure-java-jackson-serialization/src/main/java/com/palantir/conjure/java/serialization/InstrumentedJsonFactory.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,11 @@ public JsonLocation currentTokenLocation() {
236236
return delegate.currentTokenLocation();
237237
}
238238

239-
@SuppressWarnings("for-rollout:deprecation")
240239
@Override
241240
public JsonLocation getCurrentLocation() {
242241
return delegate.getCurrentLocation();
243242
}
244243

245-
@SuppressWarnings("for-rollout:deprecation")
246244
@Override
247245
public JsonLocation getTokenLocation() {
248246
return delegate.getTokenLocation();
@@ -258,13 +256,11 @@ public void assignCurrentValue(Object value) {
258256
delegate.assignCurrentValue(value);
259257
}
260258

261-
@SuppressWarnings("for-rollout:deprecation")
262259
@Override
263260
public Object getCurrentValue() {
264261
return delegate.getCurrentValue();
265262
}
266263

267-
@SuppressWarnings("for-rollout:deprecation")
268264
@Override
269265
public void setCurrentValue(Object value) {
270266
delegate.setCurrentValue(value);
@@ -313,7 +309,6 @@ public int getFeatureMask() {
313309
return delegate.getFeatureMask();
314310
}
315311

316-
@SuppressWarnings("for-rollout:deprecation")
317312
@Override
318313
@Deprecated
319314
public JsonParser setFeatureMask(int mask) {
@@ -404,7 +399,6 @@ public JsonToken getCurrentToken() {
404399
return delegate.getCurrentToken();
405400
}
406401

407-
@SuppressWarnings("for-rollout:deprecation")
408402
@Override
409403
@Deprecated
410404
public int getCurrentTokenId() {
@@ -461,7 +455,6 @@ public void overrideCurrentName(String name) {
461455
delegate.overrideCurrentName(name);
462456
}
463457

464-
@SuppressWarnings("for-rollout:deprecation")
465458
@Override
466459
public String getCurrentName() throws IOException {
467460
return delegate.getCurrentName();

conjure-java-jackson-serialization/src/main/java/com/palantir/conjure/java/serialization/ObjectMappers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public static ObjectMapper newSmileServerObjectMapper() {
170170
* <li>Deserializing a null for a primitive field will throw an exception.
171171
* </ul>
172172
*/
173-
@SuppressWarnings("for-rollout:deprecation")
174173
public static <M extends ObjectMapper, B extends MapperBuilder<M, B>> B withDefaultModules(B builder) {
175174
return builder.typeFactory(NonCachingTypeFactory.from(builder.build().getTypeFactory()))
176175
.addModule(new GuavaModule())
@@ -206,7 +205,6 @@ public static <M extends ObjectMapper, B extends MapperBuilder<M, B>> B withDefa
206205
* <li>Deserializing a null for a primitive field will throw an exception.
207206
* </ul>
208207
*/
209-
@SuppressWarnings("for-rollout:deprecation")
210208
public static ObjectMapper withDefaultModules(ObjectMapper mapper) {
211209
return mapper.setTypeFactory(NonCachingTypeFactory.from(mapper.getTypeFactory()))
212210
.registerModule(new GuavaModule())

conjure-java-jackson-serialization/src/test/java/com/palantir/conjure/java/serialization/ObjectMappersTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ public void testOptionalIntOverflowDeserialization() {
325325

326326
@Test
327327
public void testStringMetrics_json() throws IOException {
328-
@SuppressWarnings("for-rollout:deprecation")
329328
TaggedMetricRegistry registry = SharedTaggedMetricRegistries.getSingleton();
330329
removeJsonParserMetrics(registry);
331330
Histogram stringLength = JsonParserMetrics.of(registry).stringLength(JsonFactory.FORMAT_NAME_JSON);
@@ -340,7 +339,6 @@ public void testStringMetrics_json() throws IOException {
340339

341340
@Test
342341
public void testStringMetricsNotRecordedWhenValuesAreSmall_json() throws IOException {
343-
@SuppressWarnings("for-rollout:deprecation")
344342
TaggedMetricRegistry registry = SharedTaggedMetricRegistries.getSingleton();
345343
removeJsonParserMetrics(registry);
346344
Histogram stringLength = JsonParserMetrics.of(registry).stringLength(JsonFactory.FORMAT_NAME_JSON);
@@ -353,7 +351,6 @@ public void testStringMetricsNotRecordedWhenValuesAreSmall_json() throws IOExcep
353351

354352
@Test
355353
public void testStringMetrics_smile() throws IOException {
356-
@SuppressWarnings("for-rollout:deprecation")
357354
TaggedMetricRegistry registry = SharedTaggedMetricRegistries.getSingleton();
358355
removeJsonParserMetrics(registry);
359356
Histogram stringLength = JsonParserMetrics.of(registry).stringLength(SmileFactory.FORMAT_NAME_SMILE);
@@ -369,7 +366,6 @@ public void testStringMetrics_smile() throws IOException {
369366

370367
@Test
371368
public void testStringMetricsNotRecordedWhenValuesAreSmall_smile() throws IOException {
372-
@SuppressWarnings("for-rollout:deprecation")
373369
TaggedMetricRegistry registry = SharedTaggedMetricRegistries.getSingleton();
374370
removeJsonParserMetrics(registry);
375371
Histogram stringLength = JsonParserMetrics.of(registry).stringLength(SmileFactory.FORMAT_NAME_SMILE);
@@ -443,7 +439,6 @@ public void testObjectMapperWithDefaultModules() throws IOException {
443439

444440
@Test
445441
public void testJsonMapperBuilderWithDefaultModules() throws IOException {
446-
@SuppressWarnings("for-rollout:deprecation")
447442
ObjectMapper mapper = ObjectMappers.withDefaultModules(
448443
JsonMapper.builder().addModule(new Jdk8Module().configureAbsentsAsNulls(true)))
449444
.build();

conjure-java-jaxrs-client/src/main/java/com/palantir/conjure/java/client/jaxrs/AbstractFeignJaxRsClientBuilder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ final <T> T build(Class<T> serviceClass, UserAgent userAgent) {
9292
String name = "JaxRsClient-" + serviceClass.getSimpleName();
9393
ApacheHttpClientChannels.CloseableClient client =
9494
ApacheHttpClientChannels.createCloseableHttpClient(hydratedConfiguration, name);
95-
@SuppressWarnings("for-rollout:deprecation")
9695
Channel channel = DialogueChannel.builder()
9796
.channelName(name)
9897
.channelFactory(uri -> ApacheHttpClientChannels.createSingleUri(uri, client))

conjure-java-jersey-jakarta-server/src/test/java/com/palantir/conjure/java/server/jersey/TracerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public final class TracerTest {
3939
.jersey(ConjureJerseyFeature.INSTANCE)
4040
.jersey(new TracerTest.TracingTestResource());
4141

42-
@SuppressWarnings("for-rollout:deprecation")
4342
@Test
4443
public void testTracingFilterIsApplied() {
4544
undertow.runRequest(

extras/refresh-utils/src/test/java/com/palantir/conjure/java/ext/refresh/RefreshableProxyInvocationHandlerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ interface Callable {
4646
@Mock
4747
private Callable delegate2;
4848

49-
@SuppressWarnings("for-rollout:deprecation")
5049
@BeforeEach
5150
public void before() {
5251
MockitoAnnotations.initMocks(this);

okhttp-clients/src/main/java/com/palantir/conjure/java/okhttp/ConcurrencyLimitingInterceptor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ private static Response wrapResponse(Limiter.Listener listener, Response respons
9696
return response;
9797
}
9898
ResponseBody currentBody = response.body();
99-
@SuppressWarnings("for-rollout:deprecation")
10099
ResponseBody newResponseBody = ResponseBody.create(
101100
currentBody.contentType(), currentBody.contentLength(), wrapSource(currentBody.source(), listener));
102101
return response.newBuilder().body(newResponseBody).build();

okhttp-clients/src/main/java/com/palantir/conjure/java/okhttp/RemotingOkHttpCall.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ private static Response buildFrom(Response unbufferedResponse, byte[] bodyBytes)
187187
.build();
188188
}
189189

190-
@SuppressWarnings("for-rollout:deprecation")
191190
private static ResponseBody buffer(MediaType mediaType, byte[] bodyBytes) {
192191
return ResponseBody.create(mediaType, bodyBytes);
193192
}

0 commit comments

Comments
 (0)