File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 71
71
import org .springframework .web .bind .annotation .ExceptionHandler ;
72
72
import org .springframework .web .bind .annotation .ResponseStatus ;
73
73
import org .springframework .web .bind .annotation .RestControllerAdvice ;
74
- import org .springframework .web .context .request .WebRequest ;
75
74
import org .springframework .web .context .request .async .DeferredResult ;
76
75
77
76
import static org .springdoc .core .Constants .SPRINGDOC_DEPRECATING_CONVERTER_ENABLED ;
@@ -350,12 +349,11 @@ class OpenApiResourceAdvice {
350
349
* Handle no handler found response entity.
351
350
*
352
351
* @param e the e
353
- * @param request the request
354
352
* @return the response entity
355
353
*/
356
354
@ ExceptionHandler (OpenApiResourceNotFoundException .class )
357
355
@ ResponseStatus (HttpStatus .NOT_FOUND )
358
- public ResponseEntity <ErrorMessage > handleNoHandlerFound (OpenApiResourceNotFoundException e , WebRequest request ) {
356
+ public ResponseEntity <ErrorMessage > handleNoHandlerFound (OpenApiResourceNotFoundException e ) {
359
357
return ResponseEntity .status (HttpStatus .NOT_FOUND ).body (new ErrorMessage (e .getMessage ()));
360
358
}
361
359
}
You can’t perform that action at this time.
0 commit comments