slawekjaranowski commented on code in PR #84: URL: https://github.com/apache/maven-clean-plugin/pull/84#discussion_r1938483545
########## src/main/java/org/apache/maven/plugins/clean/Cleaner.java: ########## @@ -336,6 +341,15 @@ private int delete(Path file, boolean failOnError, boolean retryOnError) throws return 0; } + private static IOException delete(Path file) { + try { + Files.deleteIfExists(file); + } catch (IOException e) { + return e; Review Comment: Maybe can be designed in better way, but please consider that it is moved code from 3.x branch to master. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org