Skip to content

Commit 4af7a68

Browse files
committed
Polishing
1 parent c084936 commit 4af7a68

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

spring-web/src/main/java/org/springframework/http/ResponseEntity.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ public class ResponseEntity<T> extends HttpEntity<T> {
8282

8383

8484
/**
85-
* Create an {@code ResponseEntity} with a status code only.
85+
* Create a {@code ResponseEntity} with a status code only.
8686
* @param status the status code
8787
*/
8888
public ResponseEntity(HttpStatus status) {
8989
this(null, null, status);
9090
}
9191

9292
/**
93-
* Create an {@code ResponseEntity} with a body and status code.
93+
* Create a {@code ResponseEntity} with a body and status code.
9494
* @param body the entity body
9595
* @param status the status code
9696
*/
@@ -99,7 +99,7 @@ public ResponseEntity(@Nullable T body, HttpStatus status) {
9999
}
100100

101101
/**
102-
* Create an {@code HttpEntity} with headers and a status code.
102+
* Create a {@code ResponseEntity} with headers and a status code.
103103
* @param headers the entity headers
104104
* @param status the status code
105105
*/
@@ -108,7 +108,7 @@ public ResponseEntity(MultiValueMap<String, String> headers, HttpStatus status)
108108
}
109109

110110
/**
111-
* Create an {@code HttpEntity} with a body, headers, and a status code.
111+
* Create a {@code ResponseEntity} with a body, headers, and a status code.
112112
* @param body the entity body
113113
* @param headers the entity headers
114114
* @param status the status code
@@ -118,7 +118,7 @@ public ResponseEntity(@Nullable T body, @Nullable MultiValueMap<String, String>
118118
}
119119

120120
/**
121-
* Create an {@code HttpEntity} with a body, headers, and a raw status code.
121+
* Create a {@code ResponseEntity} with a body, headers, and a raw status code.
122122
* @param body the entity body
123123
* @param headers the entity headers
124124
* @param rawStatus the status code value

spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/WebSocketUpgradeHandlerPredicate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.web.reactive.socket.server.support;
1718

1819
import java.util.function.BiPredicate;
@@ -22,16 +23,15 @@
2223

2324
/**
2425
* A predicate for use with
25-
* {@link org.springframework.web.reactive.handler.AbstractUrlHandlerMapping#setHandlerPredicate(BiPredicate)}
26-
* to ensure only WebSocket handshake requests are matched to handlers of
27-
* type {@link WebSocketHandler}.
26+
* {@link org.springframework.web.reactive.handler.AbstractUrlHandlerMapping#setHandlerPredicate}
27+
* to ensure only WebSocket handshake requests are matched to handlers of type
28+
* {@link WebSocketHandler}.
2829
*
2930
* @author Rossen Stoyanchev
3031
* @since 5.3.5
3132
*/
3233
public class WebSocketUpgradeHandlerPredicate implements BiPredicate<Object, ServerWebExchange> {
3334

34-
3535
@Override
3636
public boolean test(Object handler, ServerWebExchange exchange) {
3737
if (handler instanceof WebSocketHandler) {

0 commit comments

Comments
 (0)