Closed daffyDukk closed 3 years ago
As far as I know, super method handleMissingServletRequestParameter
has no annotations on definition. Maybe I am missundertanding you
Spring API Docs
That one does not. But all the other parameters have annotatiosn to them
I just marked the first line and did not explain further. my bad
@aosunacab I think Daniel means the @Override
for implemented methods
This is the actual code
@Override
protected ResponseEntity<Object> handleMissingServletRequestParameter(
MissingServletRequestParameterException ex, HttpHeaders headers,
HttpStatus status, WebRequest request) {
This is how it should look
@Override
protected ResponseEntity<Object> handleMissingServletRequestParameter(
MissingServletRequestParameterException ex, @NonNull HttpHeaders headers,
@NonNull HttpStatus status, @NonNull WebRequest request) {
Actually.... I might be wrong on this @aosunacab . Leave it for now
https://github.com/de4a-wp5/de4a/blob/d47997f6deda975bc61f036432c1494e96ae3276/de4a-connector/src/main/java/eu/de4a/connector/api/controller/CustomRestExceptionHandler.java#L35
Overriding methods should also annotate the parameters with the correct annotations. This goes for all methods in this class