From 6007aee36e11a58793a603c4451ba12a3ddfdb2d Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 30 Aug 2024 16:37:04 +0200 Subject: [PATCH] Remove deprecated static AnyLongObjectId#equals method Change-Id: Ie67b9a4a5e1972ec3aebf50e058a9aabf5a20099 --- .../eclipse/jgit/lfs/lib/AnyLongObjectId.java | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AnyLongObjectId.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AnyLongObjectId.java index 75d500ef20..a13a60c2b8 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AnyLongObjectId.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AnyLongObjectId.java @@ -33,24 +33,6 @@ import org.eclipse.jgit.util.References; */ public abstract class AnyLongObjectId implements Comparable { - /** - * 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 { */ @SuppressWarnings({ "NonOverridingEquals", "AmbiguousMethodReference" }) public final boolean equals(AnyLongObjectId other) { - return other != null ? equals(this, other) : false; + return other != null ? isEqual(this, other) : false; } @Override -- 2.39.5