Polish
Closes gh-1669
This commit is contained in:
committed by
Stephane Nicoll
parent
fb61af1882
commit
4c888d0f32
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user