From: Matthias Sohn Date: Fri, 30 Aug 2024 19:51:27 +0000 (+0200) Subject: Remove deprecated RefAdvertiser#send(Map) method X-Git-Tag: v7.0.0.202409031743-r~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F1200440%2F2;p=jgit.git Remove deprecated RefAdvertiser#send(Map) method Change-Id: Ifffcfa6bf9baf9f6879a5a7e0f05d317347983f6 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java index f72c421920..3d4bea2e48 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java @@ -178,7 +178,6 @@ public abstract class RefAdvertiser { * * This method must be invoked prior to any of the following: *
    - *
  • {@link #send(Map)}
  • *
  • {@link #send(Collection)}
  • *
* @@ -195,7 +194,6 @@ public abstract class RefAdvertiser { *

* This method must be invoked prior to any of the following: *

    - *
  • {@link #send(Map)}
  • *
  • {@link #send(Collection)}
  • *
  • {@link #advertiseHave(AnyObjectId)}
  • *
@@ -230,7 +228,6 @@ public abstract class RefAdvertiser { *

* This method must be invoked prior to any of the following: *

    - *
  • {@link #send(Map)}
  • *
  • {@link #send(Collection)}
  • *
  • {@link #advertiseHave(AnyObjectId)}
  • *
@@ -249,24 +246,6 @@ public abstract class RefAdvertiser { } } - /** - * 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 send(Map refs) throws IOException { - return send(refs.values()); - } - /** * Format an advertisement for the supplied refs. *