diff --git a/framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.java b/framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.java index a2de87a9b81..68135ff334f 100644 --- a/framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.java +++ b/framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.java @@ -29,7 +29,7 @@ public class ExceptionController { // tag::narrow[] @ExceptionHandler({FileSystemException.class, RemoteException.class}) - public ResponseEntity handleIoException(IOException ex) { + public ResponseEntity handleIOException(IOException ex) { return ResponseEntity.internalServerError().body(ex.getMessage()); } // end::narrow[] diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.kt b/framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.kt index dda49e8f08b..2843a077286 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvccontroller/mvcannexceptionhandlerexc/ExceptionController.kt @@ -27,7 +27,7 @@ class ExceptionController { // tag::narrow[] @ExceptionHandler(FileSystemException::class, RemoteException::class) - fun handleIoException(ex: IOException): ResponseEntity { + fun handleIOException(ex: IOException): ResponseEntity { return ResponseEntity.internalServerError().body(ex.message) } // end::narrow[] diff --git a/spring-web/src/test/java/org/springframework/web/client/RestTemplateObservationTests.java b/spring-web/src/test/java/org/springframework/web/client/RestTemplateObservationTests.java index 8ec958df523..442fe5593ce 100644 --- a/spring-web/src/test/java/org/springframework/web/client/RestTemplateObservationTests.java +++ b/spring-web/src/test/java/org/springframework/web/client/RestTemplateObservationTests.java @@ -149,7 +149,7 @@ class RestTemplateObservationTests { } @Test - void executeWithIoExceptionAddsUnknownOutcome() throws Exception { + void executeWithIOExceptionAddsUnknownOutcome() throws Exception { String url = "https://example.org/resource"; mockSentRequest(GET, url); given(request.execute()).willThrow(new IOException("Socket failure")); diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java index 0f61a24734b..38af2470ce5 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java @@ -172,7 +172,7 @@ class ExceptionHandlerExceptionResolverTests { @Test void resolveNoExceptionHandlerForException() throws NoSuchMethodException { Exception npe = new NullPointerException(); - HandlerMethod handlerMethod = new HandlerMethod(new IoExceptionController(), "handle"); + HandlerMethod handlerMethod = new HandlerMethod(new IOExceptionController(), "handle"); this.resolver.afterPropertiesSet(); ModelAndView mav = this.resolver.resolveException(this.request, this.response, handlerMethod, npe); @@ -540,7 +540,7 @@ class ExceptionHandlerExceptionResolverTests { @Controller - static class IoExceptionController { + static class IOExceptionController { public void handle() {} diff --git a/spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java b/spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java index d12659038a4..14ab2839659 100644 --- a/spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java +++ b/spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java @@ -240,7 +240,7 @@ class SockJsSessionTests extends AbstractSockJsSessionTests { } @Test - void writeFrameIoException() throws Exception { + void writeFrameIOException() throws Exception { this.session.setExceptionOnWrite(new IOException()); this.session.delegateConnectionEstablished();