Skip to content

Commit 48bd813

Browse files
committed
Add javadoc for body parameter
See gh-26613
1 parent 118d813 commit 48bd813

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -237,8 +237,9 @@ public static BodyBuilder ok() {
237237
}
238238

239239
/**
240-
* A shortcut for creating a {@code ResponseEntity} with the given body and
241-
* the status set to {@linkplain HttpStatus#OK OK}.
240+
* A shortcut for creating a {@code ResponseEntity} with the given body
241+
* and the status set to {@linkplain HttpStatus#OK OK}.
242+
* @param body the body of the response entity (possibly empty)
242243
* @return the created {@code ResponseEntity}
243244
* @since 4.1
244245
*/

0 commit comments

Comments
 (0)