]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated static AnyLongObjectId#equals method 40/1200240/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 14:37:04 +0000 (16:37 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 09:45:26 +0000 (09:45 +0000)
Change-Id: Ie67b9a4a5e1972ec3aebf50e058a9aabf5a20099

org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AnyLongObjectId.java

index 75d500ef2064993e65b1c12c2ef2f7a048fb41a1..a13a60c2b86ad8fdf2a5d60bb53f600f1dea2ef3 100644 (file)
@@ -33,24 +33,6 @@ import org.eclipse.jgit.util.References;
  */
 public abstract class AnyLongObjectId implements Comparable<AnyLongObjectId> {
 
-       /**
-        * Compare two object identifier byte sequences for equality.
-        *
-        * @param firstObjectId
-        *            the first identifier to compare. Must not be null.
-        * @param secondObjectId
-        *            the second identifier to compare. Must not be null.
-        * @return true if the two identifiers are the same.
-        * @deprecated use {@link #isEqual(AnyLongObjectId, AnyLongObjectId)}
-        *             instead.
-        */
-       @Deprecated
-       @SuppressWarnings("AmbiguousMethodReference")
-       public static boolean equals(final AnyLongObjectId firstObjectId,
-                       final AnyLongObjectId secondObjectId) {
-               return isEqual(firstObjectId, secondObjectId);
-       }
-
        /**
         * Compare two object identifier byte sequences for equality.
         *
@@ -263,7 +245,7 @@ public abstract class AnyLongObjectId implements Comparable<AnyLongObjectId> {
         */
        @SuppressWarnings({ "NonOverridingEquals", "AmbiguousMethodReference" })
        public final boolean equals(AnyLongObjectId other) {
-               return other != null ? equals(this, other) : false;
+               return other != null ? isEqual(this, other) : false;
        }
 
        @Override