diff --git a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java index fe09defa1689..9a70a49293f3 100644 --- a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java +++ b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java @@ -551,7 +551,7 @@ void assertDoesNotHavePath() { read(); throw failure(new JsonPathNotExpected(this.json, this.path)); } - catch (PathNotFoundException ignore) { + catch (PathNotFoundException ignored) { } } diff --git a/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartUtils.java b/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartUtils.java index 6002cfb4a42b..14b105ba4471 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartUtils.java +++ b/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartUtils.java @@ -90,7 +90,7 @@ public static void closeChannel(Channel channel) { channel.close(); } } - catch (IOException ignore) { + catch (IOException ignored) { } } @@ -98,7 +98,7 @@ public static void deleteFile(Path file) { try { Files.delete(file); } - catch (IOException ignore) { + catch (IOException ignored) { } } diff --git a/spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java b/spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java index 1206a6928800..097bd1bd83a5 100644 --- a/spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java +++ b/spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java @@ -334,7 +334,7 @@ public void closeSource() { try { this.source.close(); } - catch (IOException ignore) { + catch (IOException ignored) { } } diff --git a/spring-web/src/main/java/org/springframework/web/client/RestClientUtils.java b/spring-web/src/main/java/org/springframework/web/client/RestClientUtils.java index 96744edcf81d..983402f12730 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestClientUtils.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestClientUtils.java @@ -39,7 +39,7 @@ public static byte[] getBody(HttpInputMessage message) { try { return FileCopyUtils.copyToByteArray(message.getBody()); } - catch (IOException ignore) { + catch (IOException ignored) { } return new byte[0]; } diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index d7ba423332f1..2db48bf8794c 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -40,7 +40,7 @@ - +