This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch deprecate in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
commit 038abd08b75dc431cfe9ce04cc7420b91a380f76 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Sat Jun 17 07:38:11 2023 -0400 deprecate contentEquals method that also exists in IOUtils in this very package and in Apache Commons --- 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..d8744da 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.IOUtils.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()) {
