diff options
author | Ivan Frade <ifrade@google.com> | 2024-08-29 15:43:22 -0700 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2024-08-29 15:43:22 -0700 |
commit | 8438808f9d98c90fcae10567405ade34d38319cf (patch) | |
tree | d45dea78d3ecfea7819f651cf5caf629ccc773c7 | |
parent | ff1592ef7b406d096b2fd822745a9a29d7831ef5 (diff) | |
download | jgit-8438808f9d98c90fcae10567405ade34d38319cf.tar.gz jgit-8438808f9d98c90fcae10567405ade34d38319cf.zip |
ReachabilityChecker: Remove @Deprecated method
Cleaning up before 7.0 release.
Change-Id: I620c3a485785b3d1efc950317fe552b8465a479e
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java index 1a869a0703..5afb669a15 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java @@ -26,40 +26,6 @@ import org.eclipse.jgit.errors.MissingObjectException; * @since 5.4 */ public interface ReachabilityChecker { - - /** - * Check if all targets are reachable from the {@code starters} commits. - * <p> - * Caller should parse the objectIds (preferably with - * {@code walk.parseCommit()} and handle missing/incorrect type objects - * before calling this method. - * - * @param targets - * commits to reach. - * @param starters - * known starting points. - * @return An unreachable target if at least one of the targets is - * unreachable. An empty optional if all targets are reachable from - * the starters. - * - * @throws MissingObjectException - * if any of the incoming objects doesn't exist in the - * repository. - * @throws IncorrectObjectTypeException - * if any of the incoming objects is not a commit or a tag. - * @throws IOException - * if any of the underlying indexes or readers can not be - * opened. - * - * @deprecated see {{@link #areAllReachable(Collection, Stream)} - */ - @Deprecated - default Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, - Collection<RevCommit> starters) throws MissingObjectException, - IncorrectObjectTypeException, IOException { - return areAllReachable(targets, starters.stream()); - } - /** * Check if all targets are reachable from the {@code starters} commits. * <p> |