Skip to content

Commit f634829

Browse files
committed
Add missing nullable annotation to returnBodyOnCreate(…).
Closes #2515
1 parent a1d3113 commit f634829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryRestConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public RepositoryRestConfiguration setReturnBodyForPutAndPost(Boolean returnBody
327327
* @param acceptHeader can be {@literal null} or empty.
328328
* @return
329329
*/
330-
public boolean returnBodyOnCreate(String acceptHeader) {
330+
public boolean returnBodyOnCreate(@Nullable String acceptHeader) {
331331
return returnBodyOnCreate == null ? StringUtils.hasText(acceptHeader) : returnBodyOnCreate;
332332
}
333333

@@ -338,7 +338,7 @@ public boolean returnBodyOnCreate(String acceptHeader) {
338338
* {@code Accept} header in the request.
339339
* @return {@literal this}
340340
*/
341-
public RepositoryRestConfiguration setReturnBodyOnCreate(Boolean returnBody) {
341+
public RepositoryRestConfiguration setReturnBodyOnCreate(@Nullable Boolean returnBody) {
342342
this.returnBodyOnCreate = returnBody;
343343
return this;
344344
}

0 commit comments

Comments
 (0)