This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bc3c83  [MSHARED-1271] deprecate contentEquals method that also 
exists in Apache Commons (#155)
5bc3c83 is described below

commit 5bc3c83899762bd31060259a532d72769e5e51e5
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sat Jun 17 16:28:33 2023 -0400

    [MSHARED-1271] deprecate contentEquals method that also exists in Apache 
Commons (#155)
---
 src/main/java/org/apache/maven/shared/utils/io/FileUtils.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java 
b/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
index be9924d..635c66c 100644
--- a/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
@@ -561,7 +561,9 @@ public class FileUtils {
      * @param file2 the second file
      * @return true if the content of the files are equal or they both don't 
exist, false otherwise
      * @throws IOException if any
+     * @deprecated use {@code org.apache.commons.io.FileUtils.contentEquals()}
      */
+    @Deprecated
     public static boolean contentEquals(@Nonnull final File file1, @Nonnull 
final File file2) throws IOException {
         final boolean file1Exists = file1.exists();
         if (file1Exists != file2.exists()) {

Reply via email to