]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated RefAdvertiser#send(Map<String, Ref>) method 40/1200440/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 19:51:27 +0000 (21:51 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: Ifffcfa6bf9baf9f6879a5a7e0f05d317347983f6

org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java

index f72c4219203024dd5abaedb49cde171558d469fd..3d4bea2e48ac8f4de6004fbbb40838f5b9792e30 100644 (file)
@@ -178,7 +178,6 @@ public abstract class RefAdvertiser {
         *
         * This method must be invoked prior to any of the following:
         * <ul>
-        * <li>{@link #send(Map)}</li>
         * <li>{@link #send(Collection)}</li>
         * </ul>
         *
@@ -195,7 +194,6 @@ public abstract class RefAdvertiser {
         * <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>
@@ -230,7 +228,6 @@ public abstract class RefAdvertiser {
         * <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>
@@ -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<ObjectId> send(Map<String, Ref> refs) throws IOException {
-               return send(refs.values());
-       }
-
        /**
         * Format an advertisement for the supplied refs.
         *