You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/11/14 18:29:04 UTC
(commons-io) 03/05: Remove redundant call to Objects.requireNonNull()
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit 0390d812488ce50419cad50d970167f32fd42cfb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 14 10:56:44 2024 -0500
Remove redundant call to Objects.requireNonNull()
---
src/main/java/org/apache/commons/io/FileUtils.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java
index f65b4f6f6..b3f19f241 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -1415,7 +1415,6 @@ public class FileUtils {
* @throws IOException in case deletion is unsuccessful.
*/
private static void forceDelete(final File file, final boolean strict) throws IOException {
- Objects.requireNonNull(file, PROTOCOL_FILE);
checkExists(file, strict); // fail-fast
final Counters.PathCounters deleteCounters;
try {