Polish
This commit is contained in:
parent
d979bbad2d
commit
6519e7b22a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public interface ExchangeStrategies {
|
|||
|
||||
|
||||
/**
|
||||
* A mutable builder for a {@link ExchangeStrategies}.
|
||||
* A mutable builder for an {@link ExchangeStrategies}.
|
||||
*/
|
||||
interface Builder {
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
|||
|
||||
/**
|
||||
* 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);
|
||||
|
|
|
|||
|
|
@ -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
|
|||
* 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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
|||
|
||||
/**
|
||||
* 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…
Reference in New Issue