]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated Repository#hasObject(AnyObjectId) method 00/1200400/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 15:36:58 +0000 (17:36 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: I473dff6bdc23cfb126d22e18c168390a0e21301d

org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

index b1ecca4b6065a90fdb2d9c6f08b4ffe11bacbf46..0562840915414a63531bc32411e8766d8c4f0726 100644 (file)
@@ -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.
         * <p>