diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-08-30 17:36:58 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-03 16:11:03 +0200 |
commit | 925f0d14df661046a257c5035351b17106165765 (patch) | |
tree | 30250a57eaaaf6c2be96d0399459fa6464b7fe71 /org.eclipse.jgit | |
parent | ac1265a513cb6953ef6ddada61eed2235bff186f (diff) | |
download | jgit-925f0d14df661046a257c5035351b17106165765.tar.gz jgit-925f0d14df661046a257c5035351b17106165765.zip |
Remove deprecated Repository#hasObject(AnyObjectId) method
Change-Id: I473dff6bdc23cfb126d22e18c168390a0e21301d
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java | 19 |
1 files changed, 0 insertions, 19 deletions
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 @@ -307,25 +307,6 @@ public abstract class Repository implements AutoCloseable { } /** - * 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> * This is a one-shot call interface which may be faster than allocating a |