]> source.dussan.org Git - jgit.git/commitdiff
Make deprecated Repository#peel(Ref) private 99/1200399/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 15:36:05 +0000 (17:36 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: I1c16196bba00a5d0f54c10261cc08185305ba4a3

org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

index 9dde99fada9f165d78577138db364fc8d30b6b3b..b1ecca4b6065a90fdb2d9c6f08b4ffe11bacbf46 100644 (file)
@@ -1164,11 +1164,9 @@ public abstract class Repository implements AutoCloseable {
         *         new Ref object representing the same data as Ref, but isPeeled()
         *         will be true and getPeeledObjectId will contain the peeled object
         *         (or null).
-        * @deprecated use {@code getRefDatabase().peel(ref)} instead.
         */
-       @Deprecated
        @NonNull
-       public Ref peel(Ref ref) {
+       private Ref peel(Ref ref) {
                try {
                        return getRefDatabase().peel(ref);
                } catch (IOException e) {