Browse Source

Polish

See gh-26538
pull/26540/head
izeye 5 years ago committed by Stephane Nicoll
parent
commit
9a4164c4a8
  1. 2
      spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
  2. 2
      spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java
  3. 2
      spring-web/src/test/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactoryTests.java
  4. 6
      spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/PathMatchConfigurer.java

2
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java

@ -187,7 +187,7 @@ public abstract class AbstractListenerWriteFlushProcessor<T> implements Processo @@ -187,7 +187,7 @@ public abstract class AbstractListenerWriteFlushProcessor<T> implements Processo
/**
* Invoked when an error happens while flushing.
* <p>The default implementation cancels the upstream write publisher and
* <p>The default implementation cancels the upstream write publisher and
* sends an onError downstream as the result of request handling.
*/
protected void flushingFailed(Throwable t) {

2
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java

@ -52,7 +52,7 @@ public interface ServerHttpRequest extends HttpRequest, ReactiveHttpInputMessage @@ -52,7 +52,7 @@ public interface ServerHttpRequest extends HttpRequest, ReactiveHttpInputMessage
* not including the {@link #getQueryParams() query}.
* <p>The returned path is sub-divided into a
* {@link RequestPath#contextPath()} portion and the remaining
* {@link RequestPath#pathWithinApplication() pathwithinApplication} portion.
* {@link RequestPath#pathWithinApplication() pathWithinApplication} portion.
* The latter can be passed into methods of
* {@link org.springframework.web.util.pattern.PathPattern} for path
* matching purposes.

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

@ -66,7 +66,7 @@ public class HttpComponentsClientHttpRequestFactoryTests extends AbstractHttpReq @@ -66,7 +66,7 @@ public class HttpComponentsClientHttpRequestFactoryTests extends AbstractHttpReq
Object config = request.getHttpContext().getAttribute(HttpClientContext.REQUEST_CONFIG);
assertThat(config).as("Request config should be set").isNotNull();
assertThat(config).as("Wrong request config type" + config.getClass().getName()).isInstanceOf(RequestConfig.class);
assertThat(config).as("Wrong request config type " + config.getClass().getName()).isInstanceOf(RequestConfig.class);
RequestConfig requestConfig = (RequestConfig) config;
assertThat(requestConfig.getConnectTimeout()).as("Wrong custom connection timeout").isEqualTo(1234);
assertThat(requestConfig.getConnectionRequestTimeout()).as("Wrong custom connection request timeout").isEqualTo(4321);

6
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/PathMatchConfigurer.java

@ -229,7 +229,7 @@ public class PathMatchConfigurer { @@ -229,7 +229,7 @@ public class PathMatchConfigurer {
}
/**
* Return the configure UrlPathHelper or a default, shared instance otherwise.
* Return the configured UrlPathHelper or a default, shared instance otherwise.
* @since 5.3
*/
protected UrlPathHelper getUrlPathHelperOrDefault() {
@ -243,7 +243,7 @@ public class PathMatchConfigurer { @@ -243,7 +243,7 @@ public class PathMatchConfigurer {
}
/**
* Return the configure PathMatcher or a default, shared, instance otherwise.
* Return the configured PathMatcher or a default, shared instance otherwise.
* @since 5.3
*/
protected PathMatcher getPathMatcherOrDefault() {
@ -257,7 +257,7 @@ public class PathMatchConfigurer { @@ -257,7 +257,7 @@ public class PathMatchConfigurer {
}
/**
* Return the configured PathPatternParser or a default, shared, instance otherwise.
* Return the configured PathPatternParser or a default, shared instance otherwise.
* @since 5.3.4
*/
public PathPatternParser getPatternParserOrDefault() {

Loading…
Cancel
Save