Closes gh-1669
This commit is contained in:
igor-suhorukov
2018-02-09 00:07:43 +03:00
committed by Stephane Nicoll
parent fb61af1882
commit 4c888d0f32
6 changed files with 7 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ public class ResponseEntityResultHandler extends AbstractMessageWriterResultHand
httpEntity = (HttpEntity<?>) returnValue;
}
else if (returnValue instanceof HttpHeaders) {
httpEntity = new ResponseEntity<Void>((HttpHeaders) returnValue, HttpStatus.OK);
httpEntity = new ResponseEntity<>((HttpHeaders) returnValue, HttpStatus.OK);
}
else {
throw new IllegalArgumentException(