Skip to content

Commit 118d813

Browse files
kevin0x90jhoeller
authored andcommitted
Add missing nullable annotation to ResponseEntity ok convenience method
1 parent c2137a0 commit 118d813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public static BodyBuilder ok() {
242242
* @return the created {@code ResponseEntity}
243243
* @since 4.1
244244
*/
245-
public static <T> ResponseEntity<T> ok(T body) {
245+
public static <T> ResponseEntity<T> ok(@Nullable T body) {
246246
return ok().body(body);
247247
}
248248

0 commit comments

Comments
 (0)