From 5f801d4e0988a689ae92c1af075bc83463b4881e Mon Sep 17 00:00:00 2001 From: Peter De Maeyer Date: Thu, 7 Nov 2024 19:39:59 +0100 Subject: [PATCH] Renamed variable error -> failure --- src/main/java/org/apache/maven/plugins/clean/Cleaner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/clean/Cleaner.java b/src/main/java/org/apache/maven/plugins/clean/Cleaner.java index b43ebdc..52f1e25 100644 --- a/src/main/java/org/apache/maven/plugins/clean/Cleaner.java +++ b/src/main/java/org/apache/maven/plugins/clean/Cleaner.java @@ -273,8 +273,8 @@ private boolean isSymbolicLink(Path path) throws IOException { * @throws IOException If a file/directory could not be deleted and failOnError is true. */ private int delete(File file, boolean failOnError, boolean retryOnError) throws IOException { - IOException error = delete(file); - if (error != null) { + IOException failure = delete(file); + if (failure != null) { boolean deleted = false; if (retryOnError) { @@ -298,10 +298,10 @@ private int delete(File file, boolean failOnError, boolean retryOnError) throws if (!deleted) { if (failOnError) { - throw new IOException("Failed to delete " + file, error); + throw new IOException("Failed to delete " + file, failure); } else { if (log.isWarnEnabled()) { - log.warn("Failed to delete " + file, error); + log.warn("Failed to delete " + file, failure); } return 1; }