From 4987880afa8869fb332e2def844f57529ec25fc9 Mon Sep 17 00:00:00 2001 From: izeye Date: Fri, 9 Apr 2021 21:21:32 +0900 Subject: [PATCH] Polish See gh-25980 --- .../actuate/metrics/web/reactive/server/WebFluxTagsTests.java | 4 ++-- .../boot/autoconfigure/netty/NettyAutoConfigurationTests.java | 2 +- .../src/docs/asciidoc/production-ready-features.adoc | 4 ++-- .../boot/web/reactive/error/ErrorAttributes.java | 2 +- .../boot/web/servlet/error/ErrorAttributes.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsTests.java index 023c62957d..7273b9b0f4 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsTests.java @@ -209,13 +209,13 @@ class WebFluxTagsTests { } @Test - void outcomeTagIsClientErrorWhenExceptionIsDisconnectedClient() { + void outcomeTagIsUnknownWhenExceptionIsDisconnectedClient() { Tag tag = WebFluxTags.outcome(this.exchange, new EOFException("broken pipe")); assertThat(tag.getValue()).isEqualTo("UNKNOWN"); } @Test - void outcomeTagIsClientErrorWhenExceptionIsCancelledExchange() { + void outcomeTagIsUnknownWhenExceptionIsCancelledExchange() { Tag tag = WebFluxTags.outcome(this.exchange, new CancelledServerWebExchangeException()); assertThat(tag.getValue()).isEqualTo("UNKNOWN"); } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyAutoConfigurationTests.java index 609cd3cbc4..821fd4cba9 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/netty/NettyAutoConfigurationTests.java @@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat; * * @author Brian Clozel */ -public class NettyAutoConfigurationTests { +class NettyAutoConfigurationTests { private final ApplicationContextRunner contextRunner = new ApplicationContextRunner() .withConfiguration(AutoConfigurations.of(NettyAutoConfiguration.class)); diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc index b2ec37d4f2..8415cd8747 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc @@ -2206,7 +2206,7 @@ To add to the default tags, provide one or more ``@Bean``s that implement `WebMv To replace the default tags, provide a `@Bean` that implements `WebMvcTagsProvider`. TIP: In some cases, exceptions handled in Web controllers are not recorded as request metrics tags. -Applications can opt-in and record exceptions by <>. +Applications can opt-in and record exceptions by <>. @@ -2245,7 +2245,7 @@ To add to the default tags, provide one or more ``@Bean``s that implement `WebFl To replace the default tags, provide a `@Bean` that implements `WebFluxTagsProvider`. TIP: In some cases, exceptions handled in controllers and handler functions are not recorded as request metrics tags. -Applications can opt-in and record exceptions by <>. +Applications can opt-in and record exceptions by <>. diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/ErrorAttributes.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/ErrorAttributes.java index 6dbb37dfc6..3c9a1d5567 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/ErrorAttributes.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/ErrorAttributes.java @@ -35,7 +35,7 @@ import org.springframework.web.server.ServerWebExchange; public interface ErrorAttributes { /** - * Name of the {@link ServerRequest#attribute(String)} Request attribute} holding the + * Name of the {@link ServerRequest#attribute(String) request attribute} holding the * error resolved by the {@code ErrorAttributes} implementation. * @since 2.5.0 */ diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/error/ErrorAttributes.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/error/ErrorAttributes.java index 0cc12a631b..55f31327ef 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/error/ErrorAttributes.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/error/ErrorAttributes.java @@ -36,7 +36,7 @@ public interface ErrorAttributes { /** * Name of the {@link javax.servlet.http.HttpServletRequest#getAttribute(String) - * Request attribute} holding the error resolved by the {@code ErrorAttributes} + * request attribute} holding the error resolved by the {@code ErrorAttributes} * implementation. * @since 2.5.0 */