From ceb1e5d223e2764a1e55c951ed17863b87487326 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Fri, 30 Sep 2022 12:16:55 +0200 Subject: [PATCH] Polish See gh-32518 --- .../metrics/web/reactive/client/WebClientExchangeTags.java | 3 +++ .../web/reactive/client/WebClientExchangeTagsTests.java | 1 + 2 files changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java index 3f8c2c4b18..be9598baf9 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java @@ -34,7 +34,10 @@ import org.springframework.web.reactive.function.client.WebClient; * @author Brian Clozel * @author Nishant Raut * @since 2.1.0 + * @deprecated since 3.0.0 for removal in 3.2.0 in favor of + * {@link org.springframework.web.reactive.function.client.DefaultClientObservationConvention} */ +@Deprecated(since = "3.0.0", forRemoval = true) public final class WebClientExchangeTags { private static final String URI_TEMPLATE_ATTRIBUTE = WebClient.class.getName() + ".uriTemplate"; diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java index 9889ba7d21..0bae055072 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java @@ -40,6 +40,7 @@ import static org.mockito.Mockito.mock; * @author Brian Clozel * @author Nishant Raut */ +@SuppressWarnings({"deprecation", "removal"}) class WebClientExchangeTagsTests { private static final String URI_TEMPLATE_ATTRIBUTE = WebClient.class.getName() + ".uriTemplate";