Skip to content

Commit 7ce4547

Browse files
committed
Add missing nullable annotation to returnBodyOnUpdate(…).
Closes #2516
1 parent f634829 commit 7ce4547

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
@@ -362,7 +362,7 @@ public RepositoryRestConfiguration setReturnBodyOnCreate(@Nullable Boolean retur
362362
* @param acceptHeader can be {@literal null} or empty.
363363
* @return
364364
*/
365-
public boolean returnBodyOnUpdate(String acceptHeader) {
365+
public boolean returnBodyOnUpdate(@Nullable String acceptHeader) {
366366
return returnBodyOnUpdate == null ? StringUtils.hasText(acceptHeader) : returnBodyOnUpdate;
367367
}
368368

@@ -373,7 +373,7 @@ public boolean returnBodyOnUpdate(String acceptHeader) {
373373
* {@code Accept} header in the request.
374374
* @return {@literal this}
375375
*/
376-
public RepositoryRestConfiguration setReturnBodyOnUpdate(Boolean returnBodyOnUpdate) {
376+
public RepositoryRestConfiguration setReturnBodyOnUpdate(@Nullable Boolean returnBodyOnUpdate) {
377377
this.returnBodyOnUpdate = returnBodyOnUpdate;
378378
return this;
379379
}

0 commit comments

Comments
 (0)