Skip to content

Commit b9fb0e5

Browse files
committed
IllegalStateException in org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound. Fixes #1051
1 parent a22a7c5 commit b9fb0e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/SpringDocConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
import org.springframework.web.bind.annotation.ExceptionHandler;
7272
import org.springframework.web.bind.annotation.ResponseStatus;
7373
import org.springframework.web.bind.annotation.RestControllerAdvice;
74-
import org.springframework.web.context.request.WebRequest;
7574
import org.springframework.web.context.request.async.DeferredResult;
7675

7776
import static org.springdoc.core.Constants.SPRINGDOC_DEPRECATING_CONVERTER_ENABLED;
@@ -350,12 +349,11 @@ class OpenApiResourceAdvice {
350349
* Handle no handler found response entity.
351350
*
352351
* @param e the e
353-
* @param request the request
354352
* @return the response entity
355353
*/
356354
@ExceptionHandler(OpenApiResourceNotFoundException.class)
357355
@ResponseStatus(HttpStatus.NOT_FOUND)
358-
public ResponseEntity<ErrorMessage> handleNoHandlerFound(OpenApiResourceNotFoundException e, WebRequest request) {
356+
public ResponseEntity<ErrorMessage> handleNoHandlerFound(OpenApiResourceNotFoundException e) {
359357
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ErrorMessage(e.getMessage()));
360358
}
361359
}

0 commit comments

Comments
 (0)