From 925f0d14df661046a257c5035351b17106165765 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 30 Aug 2024 17:36:58 +0200 Subject: Remove deprecated Repository#hasObject(AnyObjectId) method Change-Id: I473dff6bdc23cfb126d22e18c168390a0e21301d --- .../src/org/eclipse/jgit/lib/Repository.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'org.eclipse.jgit') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index b1ecca4b60..0562840915 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -306,25 +306,6 @@ public abstract class Repository implements AutoCloseable { return fs; } - /** - * Whether the specified object is stored in this repo or any of the known - * shared repositories. - * - * @param objectId - * a {@link org.eclipse.jgit.lib.AnyObjectId} object. - * @return true if the specified object is stored in this repo or any of the - * known shared repositories. - * @deprecated use {@code getObjectDatabase().has(objectId)} - */ - @Deprecated - public boolean hasObject(AnyObjectId objectId) { - try { - return getObjectDatabase().has(objectId); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - } - /** * Open an object from this repository. *

-- cgit v1.2.3