From b7651da4e8c75181bf6c6955e77428f32dd274e9 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 10 Mar 2018 00:57:57 +0100 Subject: [PATCH] Remove deprecated LfsProtocolServlet#getLargeFileRepository Use LfsProtocolServlet##getLargeFileRepository(LfsRequest, String, String) instead. Change-Id: If68d06f2e6edbf843dc9d3b4e3b99c33b0fab766 Signed-off-by: Matthias Sohn --- .../jgit/lfs/server/fs/LfsServerTest.java | 6 --- .../jgit/lfs/server/LfsProtocolServlet.java | 42 ------------------- 2 files changed, 48 deletions(-) diff --git a/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java b/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java index 90fe116804..10823b8788 100644 --- a/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java +++ b/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java @@ -129,12 +129,6 @@ public abstract class LfsServerTest { LfsProtocolServlet protocol = new LfsProtocolServlet() { private static final long serialVersionUID = 1L; - @Override - protected LargeFileRepository getLargeFileRepository( - LfsRequest request, String path) { - return repository; - } - @Override protected LargeFileRepository getLargeFileRepository( LfsRequest request, String path, String auth) diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java index 6968d75636..c7f55dd3c1 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java @@ -105,48 +105,6 @@ public abstract class LfsProtocolServlet extends HttpServlet { private static final int SC_BANDWIDTH_LIMIT_EXCEEDED = 509; - /** - * Get the large file repository for the given request and path. - * - * @param request - * the request - * @param path - * the path - * @return the large file repository storing large files. - * @throws org.eclipse.jgit.lfs.errors.LfsException - * implementations should throw more specific exceptions to - * signal which type of error occurred: - *
- *
{@link org.eclipse.jgit.lfs.errors.LfsValidationError}
- *
when there is a validation error with one or more of the - * objects in the request
- *
{@link org.eclipse.jgit.lfs.errors.LfsRepositoryNotFound}
- *
when the repository does not exist for the user
- *
{@link org.eclipse.jgit.lfs.errors.LfsRepositoryReadOnly}
- *
when the user has read, but not write access. Only - * applicable when the operation in the request is "upload"
- *
{@link org.eclipse.jgit.lfs.errors.LfsRateLimitExceeded}
- *
when the user has hit a rate limit with the server
- *
{@link org.eclipse.jgit.lfs.errors.LfsBandwidthLimitExceeded}
- *
when the bandwidth limit for the user or repository has - * been exceeded
- *
{@link org.eclipse.jgit.lfs.errors.LfsInsufficientStorage}
- *
when there is insufficient storage on the server
- *
{@link org.eclipse.jgit.lfs.errors.LfsUnavailable}
- *
when LFS is not available
- *
{@link org.eclipse.jgit.lfs.errors.LfsException}
- *
when an unexpected internal server error occurred
- *
- * @since 4.5 - * @deprecated use - * {@link #getLargeFileRepository(LfsRequest, String, String)} - */ - @Deprecated - protected LargeFileRepository getLargeFileRepository(LfsRequest request, - String path) throws LfsException { - return getLargeFileRepository(request, path, null); - } - /** * Get the large file repository for the given request and path. * -- 2.39.5