From: Ivan Frade Date: Thu, 29 Aug 2024 22:45:15 +0000 (-0700) Subject: RepoCommand.RemoteReader: Remove @Deprecated method X-Git-Tag: v7.0.0.202409031743-r~43^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5cc3151aea90d9af958c260fcb9a7a3cfc2ca6d;p=jgit.git RepoCommand.RemoteReader: Remove @Deprecated method Cleaning up before 7.0 release. Change-Id: I83db715a8170a54957dd5bcf38df5b0911a12107 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index 9979664ceb..c80a58a7c8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -110,32 +110,6 @@ public class RepoCommand extends GitCommand { @Nullable public ObjectId sha1(String uri, String ref) throws GitAPIException; - /** - * Read a file from a remote repository. - * - * @param uri - * The URI of the remote repository - * @param ref - * The ref (branch/tag/etc.) to read - * @param path - * The relative path (inside the repo) to the file to read - * @return the file content. - * @throws GitAPIException - * If the ref have an invalid or ambiguous name, or it does - * not exist in the repository, - * @throws IOException - * If the object does not exist or is too large - * @since 3.5 - * - * @deprecated Use {@link #readFileWithMode(String, String, String)} - * instead - */ - @Deprecated - public default byte[] readFile(String uri, String ref, String path) - throws GitAPIException, IOException { - return readFileWithMode(uri, ref, path).getContents(); - } - /** * Read contents and mode (i.e. permissions) of the file from a remote * repository.