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-vfs.git
The following commit(s) were added to refs/heads/master by this push: new 50b31903 Use Objects.equals() 50b31903 is described below commit 50b31903807e34d5b8eba659cbd870680b733506 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jul 16 21:43:15 2023 -0400 Use Objects.equals() --- .../src/test/java/org/apache/commons/vfs2/VfsTestUtils.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VfsTestUtils.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VfsTestUtils.java index af4546cb..25ecf1b0 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VfsTestUtils.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VfsTestUtils.java @@ -79,19 +79,6 @@ public abstract class VfsTestUtils { assertEquals(message, throwable.getMessage()); } - /** - * Compares 2 objects for equality, nulls are equal. Used by the test classes' equals() methods. - */ - public static boolean equals(final Object o1, final Object o2) { - if (o1 == null && o2 == null) { - return true; - } - if (o1 == null || o2 == null) { - return false; - } - return o1.equals(o2); - } - /** * Makes a file canonical */