Skip to content

Commit c6b60f0

Browse files
izeyerstoyanchev
authored andcommitted
Polish
1 parent 7aba6ca commit c6b60f0

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.springframework.util.Assert;
3838

3939
/**
40-
* {@code HttpMessageWriter} that wraps and delegates to a {@link Encoder}.
40+
* {@code HttpMessageWriter} that wraps and delegates to an {@link Encoder}.
4141
*
4242
* <p>Also a {@code HttpMessageWriter} that pre-resolves encoding hints
4343
* from the extra information available on the server side such as the request

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static Builder empty() {
8282

8383

8484
/**
85-
* A mutable builder for a {@link ExchangeStrategies}.
85+
* A mutable builder for an {@link ExchangeStrategies}.
8686
*/
8787
interface Builder {
8888

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
5050

5151

5252
private final List<ProduceMediaTypeExpression> mediaTypeAllList =
53-
Collections.singletonList(new ProduceMediaTypeExpression("*/*"));
53+
Collections.singletonList(new ProduceMediaTypeExpression(MediaType.ALL_VALUE));
5454

5555
private final List<ProduceMediaTypeExpression> expressions;
5656

@@ -280,7 +280,7 @@ else if (index1 != -1) {
280280

281281
/**
282282
* Return the contained "produces" expressions or if that's empty, a list
283-
* with a {@code MediaType_ALL} expression.
283+
* with a {@value MediaType#ALL_VALUE} expression.
284284
*/
285285
private List<ProduceMediaTypeExpression> getExpressionsToCompare() {
286286
return (this.expressions.isEmpty() ? mediaTypeAllList : this.expressions);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public Mono<Void> send(Publisher<WebSocketMessage> messages) {
137137
* Suspend receiving until received message(s) are processed and more demand
138138
* is generated by the downstream Subscriber.
139139
* <p><strong>Note:</strong> if the underlying WebSocket API does not provide
140-
* flow control for receiving messages, and this method should be a no-op
140+
* flow control for receiving messages, this method should be a no-op
141141
* and {@link #canSuspendReceiving()} should return {@code false}.
142142
*/
143143
protected abstract void suspendReceiving();
@@ -146,7 +146,7 @@ public Mono<Void> send(Publisher<WebSocketMessage> messages) {
146146
* Resume receiving new message(s) after demand is generated by the
147147
* downstream Subscriber.
148148
* <p><strong>Note:</strong> if the underlying WebSocket API does not provide
149-
* flow control for receiving messages, and this method should be a no-op
149+
* flow control for receiving messages, this method should be a no-op
150150
* and {@link #canSuspendReceiving()} should return {@code false}.
151151
*/
152152
protected abstract void resumeReceiving();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
import static org.junit.Assert.assertTrue;
5454

5555
/**
56-
* Integration tests using a {@link ExchangeFunction} through {@link WebClient}.
56+
* Integration tests using an {@link ExchangeFunction} through {@link WebClient}.
5757
*
5858
* @author Brian Clozel
5959
* @author Rossen Stoyanchev

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
5252
private static final ProducesRequestCondition EMPTY_CONDITION = new ProducesRequestCondition();
5353

5454
private static final List<ProduceMediaTypeExpression> MEDIA_TYPE_ALL_LIST =
55-
Collections.singletonList(new ProduceMediaTypeExpression("*/*"));
55+
Collections.singletonList(new ProduceMediaTypeExpression(MediaType.ALL_VALUE));
5656

5757

5858
private final List<ProduceMediaTypeExpression> expressions;
@@ -300,7 +300,7 @@ else if (index1 != -1) {
300300

301301
/**
302302
* Return the contained "produces" expressions or if that's empty, a list
303-
* with a {@code MediaType_ALL} expression.
303+
* with a {@value MediaType#ALL_VALUE} expression.
304304
*/
305305
private List<ProduceMediaTypeExpression> getExpressionsToCompare() {
306306
return (this.expressions.isEmpty() ? MEDIA_TYPE_ALL_LIST : this.expressions);

0 commit comments

Comments
 (0)