From: Matthias Sohn Date: Fri, 30 Aug 2024 15:36:05 +0000 (+0200) Subject: Make deprecated Repository#peel(Ref) private X-Git-Tag: v7.0.0.202409031743-r~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac1265a513cb6953ef6ddada61eed2235bff186f;p=jgit.git Make deprecated Repository#peel(Ref) private Change-Id: I1c16196bba00a5d0f54c10261cc08185305ba4a3 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index 9dde99fada..b1ecca4b60 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -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) {