From abfaa1cdd1fa8e528804b1c85d6b0e30adc58c34 Mon Sep 17 00:00:00 2001 From: gounthar Date: Tue, 10 Dec 2024 17:05:08 +0100 Subject: [PATCH] fix(fork): Add @deprecated reason and replacement information --- src/main/java/org/kohsuke/github/GHRepository.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 274d68b5e8..46601c6000 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1458,9 +1458,9 @@ public PagedIterable listForks(final ForkSort sort) { * @return Newly forked repository that belong to you. * @throws IOException * the io exception - * @deprecated + * @deprecated Use {@link #createFork(String, String, boolean)} instead */ - @Deprecated + @Deprecated(forRemoval = true) public GHRepository fork() throws IOException { return createFork(null, null, false); } @@ -1491,9 +1491,9 @@ public GHBranchSync sync(String branch) throws IOException { * @return Newly forked repository that belong to you. * @throws IOException * the io exception - * @deprecated + * @deprecated Use {@link #createFork(String, String, boolean)} instead */ - @Deprecated + @Deprecated(forRemoval = true) public GHRepository forkTo(GHOrganization org) throws IOException { return createFork(org.getLogin(), null, false); }