Skip to content

Commit

Permalink
Remove deprecated RefAdvertiser#send(Map<String, Ref>) method
Browse files Browse the repository at this point in the history
Change-Id: Ifffcfa6bf9baf9f6879a5a7e0f05d317347983f6
  • Loading branch information
msohn committed Sep 3, 2024
1 parent 0d4e81e commit d672276
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public void setUseProtocolV2(boolean b) {
*
* This method must be invoked prior to any of the following:
* <ul>
* <li>{@link #send(Map)}</li>
* <li>{@link #send(Collection)}</li>
* </ul>
*
Expand All @@ -195,7 +194,6 @@ public void setDerefTags(boolean deref) {
* <p>
* This method must be invoked prior to any of the following:
* <ul>
* <li>{@link #send(Map)}</li>
* <li>{@link #send(Collection)}</li>
* <li>{@link #advertiseHave(AnyObjectId)}</li>
* </ul>
Expand Down Expand Up @@ -230,7 +228,6 @@ public void advertiseCapability(String name, String value) {
* <p>
* This method must be invoked prior to any of the following:
* <ul>
* <li>{@link #send(Map)}</li>
* <li>{@link #send(Collection)}</li>
* <li>{@link #advertiseHave(AnyObjectId)}</li>
* </ul>
Expand All @@ -249,24 +246,6 @@ public void addSymref(String from, String to) {
}
}

/**
* Format an advertisement for the supplied refs.
*
* @param refs
* zero or more refs to format for the client. The collection is
* sorted before display if necessary, and therefore may appear
* in any order.
* @return set of ObjectIds that were advertised to the client.
* @throws java.io.IOException
* the underlying output stream failed to write out an
* advertisement record.
* @deprecated use {@link #send(Collection)} instead.
*/
@Deprecated
public Set<ObjectId> send(Map<String, Ref> refs) throws IOException {
return send(refs.values());
}

/**
* Format an advertisement for the supplied refs.
*
Expand Down

0 comments on commit d672276

Please sign in to comment.