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); }