Consistent IOException spelling in class/method names

This commit is contained in:
Juergen Hoeller
2026-03-21 12:13:39 +01:00
parent 4c854d564c
commit 3a35c4dbd0
5 changed files with 6 additions and 6 deletions
@@ -29,7 +29,7 @@ public class ExceptionController {
// tag::narrow[]
@ExceptionHandler({FileSystemException.class, RemoteException.class})
public ResponseEntity<String> handleIoException(IOException ex) {
public ResponseEntity<String> handleIOException(IOException ex) {
return ResponseEntity.internalServerError().body(ex.getMessage());
}
// end::narrow[]
@@ -27,7 +27,7 @@ class ExceptionController {
// tag::narrow[]
@ExceptionHandler(FileSystemException::class, RemoteException::class)
fun handleIoException(ex: IOException): ResponseEntity<String> {
fun handleIOException(ex: IOException): ResponseEntity<String> {
return ResponseEntity.internalServerError().body(ex.message)
}
// end::narrow[]
@@ -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"));
@@ -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() {}
@@ -240,7 +240,7 @@ class SockJsSessionTests extends AbstractSockJsSessionTests<TestSockJsSession> {
}
@Test
void writeFrameIoException() throws Exception {
void writeFrameIOException() throws Exception {
this.session.setExceptionOnWrite(new IOException());
this.session.delegateConnectionEstablished();