Browse Source

Polish

pull/1811/merge
Johnny Lim 8 years ago committed by Rossen Stoyanchev
parent
commit
6519e7b22a
  1. 2
      spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java
  2. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java
  3. 4
      spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java
  4. 4
      spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java
  5. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
  6. 4
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.java

2
spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java

@ -37,7 +37,7 @@ import org.springframework.lang.Nullable; @@ -37,7 +37,7 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
* {@code HttpMessageWriter} that wraps and delegates to a {@link Encoder}.
* {@code HttpMessageWriter} that wraps and delegates to an {@link Encoder}.
*
* <p>Also a {@code HttpMessageWriter} that pre-resolves encoding hints
* from the extra information available on the server side such as the request

2
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java

@ -82,7 +82,7 @@ public interface ExchangeStrategies { @@ -82,7 +82,7 @@ public interface ExchangeStrategies {
/**
* A mutable builder for a {@link ExchangeStrategies}.
* A mutable builder for an {@link ExchangeStrategies}.
*/
interface Builder {

4
spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java

@ -50,7 +50,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro @@ -50,7 +50,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
private final List<ProduceMediaTypeExpression> mediaTypeAllList =
Collections.singletonList(new ProduceMediaTypeExpression("*/*"));
Collections.singletonList(new ProduceMediaTypeExpression(MediaType.ALL_VALUE));
private final List<ProduceMediaTypeExpression> expressions;
@ -280,7 +280,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro @@ -280,7 +280,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
/**
* Return the contained "produces" expressions or if that's empty, a list
* with a {@code MediaType_ALL} expression.
* with a {@value MediaType#ALL_VALUE} expression.
*/
private List<ProduceMediaTypeExpression> getExpressionsToCompare() {
return (this.expressions.isEmpty() ? mediaTypeAllList : this.expressions);

4
spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java

@ -137,7 +137,7 @@ public abstract class AbstractListenerWebSocketSession<T> extends AbstractWebSoc @@ -137,7 +137,7 @@ public abstract class AbstractListenerWebSocketSession<T> extends AbstractWebSoc
* Suspend receiving until received message(s) are processed and more demand
* is generated by the downstream Subscriber.
* <p><strong>Note:</strong> if the underlying WebSocket API does not provide
* flow control for receiving messages, and this method should be a no-op
* flow control for receiving messages, this method should be a no-op
* and {@link #canSuspendReceiving()} should return {@code false}.
*/
protected abstract void suspendReceiving();
@ -146,7 +146,7 @@ public abstract class AbstractListenerWebSocketSession<T> extends AbstractWebSoc @@ -146,7 +146,7 @@ public abstract class AbstractListenerWebSocketSession<T> extends AbstractWebSoc
* Resume receiving new message(s) after demand is generated by the
* downstream Subscriber.
* <p><strong>Note:</strong> if the underlying WebSocket API does not provide
* flow control for receiving messages, and this method should be a no-op
* flow control for receiving messages, this method should be a no-op
* and {@link #canSuspendReceiving()} should return {@code false}.
*/
protected abstract void resumeReceiving();

2
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java

@ -51,7 +51,7 @@ import org.springframework.http.codec.Pojo; @@ -51,7 +51,7 @@ import org.springframework.http.codec.Pojo;
import static org.junit.Assert.*;
/**
* Integration tests using a {@link ExchangeFunction} through {@link WebClient}.
* Integration tests using an {@link ExchangeFunction} through {@link WebClient}.
*
* @author Brian Clozel
* @author Rossen Stoyanchev

4
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.java

@ -52,7 +52,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro @@ -52,7 +52,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
private static final ProducesRequestCondition EMPTY_CONDITION = new ProducesRequestCondition();
private static final List<ProduceMediaTypeExpression> MEDIA_TYPE_ALL_LIST =
Collections.singletonList(new ProduceMediaTypeExpression("*/*"));
Collections.singletonList(new ProduceMediaTypeExpression(MediaType.ALL_VALUE));
private final List<ProduceMediaTypeExpression> expressions;
@ -300,7 +300,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro @@ -300,7 +300,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
/**
* Return the contained "produces" expressions or if that's empty, a list
* with a {@code MediaType_ALL} expression.
* with a {@value MediaType#ALL_VALUE} expression.
*/
private List<ProduceMediaTypeExpression> getExpressionsToCompare() {
return (this.expressions.isEmpty() ? MEDIA_TYPE_ALL_LIST : this.expressions);

Loading…
Cancel
Save