diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-03-09 12:14:22 +0100 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-03-09 13:30:07 +0100 |
commit | 708febedafe8a910436b70c8181cf4b6501220f1 (patch) | |
tree | db2242f856f73d58377606cc985caac000ae79c9 | |
parent | c1ed9483ff77487b38587a96a74b6ebb813985da (diff) | |
download | jgit-708febedafe8a910436b70c8181cf4b6501220f1.tar.gz jgit-708febedafe8a910436b70c8181cf4b6501220f1.zip |
cleanup: Remove unnecessary @SuppressWarnings
Change-Id: Ie22ac47e315bff76f224214bc042fc483eb01550
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
4 files changed, 0 insertions, 5 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java index ef3dc2cc73..11c3de39e4 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java @@ -138,7 +138,6 @@ public class GitServlet extends MetaServlet { * the factory to construct and configure an {@link UploadPack} * session when a fetch or clone is requested by a client. */ - @SuppressWarnings("unchecked") public void setUploadPackFactory(UploadPackFactory<HttpServletRequest> f) { gitFilter.setUploadPackFactory(f); } @@ -158,7 +157,6 @@ public class GitServlet extends MetaServlet { * the factory to construct and configure a {@link ReceivePack} * session when a push is requested by a client. */ - @SuppressWarnings("unchecked") public void setReceivePackFactory(ReceivePackFactory<HttpServletRequest> f) { gitFilter.setReceivePackFactory(f); } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsBlockCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsBlockCache.java index ba704e5104..18b50e04ed 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsBlockCache.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsBlockCache.java @@ -524,7 +524,6 @@ public final class DfsBlockCache { return true; } - @SuppressWarnings("unchecked") private <T> T scan(HashEntry n, DfsPackKey pack, long position) { Ref<T> r = scanRef(n, pack, position); return r != null ? r.get() : null; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java index 621480bc55..0ba846a2a5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java @@ -541,7 +541,6 @@ final class DfsReader extends ObjectReader implements ObjectReuseAsIs { } } - @SuppressWarnings("unchecked") public Collection<CachedPack> getCachedPacks() throws IOException { DfsPackFile[] packList = db.getPacks(); List<CachedPack> cached = new ArrayList<CachedPack>(packList.length); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsRepositoryBuilder.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsRepositoryBuilder.java index a41779f4d0..5e526b4495 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsRepositoryBuilder.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsRepositoryBuilder.java @@ -120,7 +120,6 @@ public abstract class DfsRepositoryBuilder<B extends DfsRepositoryBuilder, R ext * the repository could not be accessed to configure the rest of * the builder's parameters. */ - @SuppressWarnings("unchecked") @Override public abstract R build() throws IOException; |