Переглянути джерело

cleanup: Remove unnecessary @SuppressWarnings

Change-Id: Ie22ac47e315bff76f224214bc042fc483eb01550
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
tags/v2.0.0.201206130900-r
Robin Rosenberg 12 роки тому
джерело
коміт
708febedaf

+ 0
- 2
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java Переглянути файл

* the factory to construct and configure an {@link UploadPack} * the factory to construct and configure an {@link UploadPack}
* session when a fetch or clone is requested by a client. * session when a fetch or clone is requested by a client.
*/ */
@SuppressWarnings("unchecked")
public void setUploadPackFactory(UploadPackFactory<HttpServletRequest> f) { public void setUploadPackFactory(UploadPackFactory<HttpServletRequest> f) {
gitFilter.setUploadPackFactory(f); gitFilter.setUploadPackFactory(f);
} }
* the factory to construct and configure a {@link ReceivePack} * the factory to construct and configure a {@link ReceivePack}
* session when a push is requested by a client. * session when a push is requested by a client.
*/ */
@SuppressWarnings("unchecked")
public void setReceivePackFactory(ReceivePackFactory<HttpServletRequest> f) { public void setReceivePackFactory(ReceivePackFactory<HttpServletRequest> f) {
gitFilter.setReceivePackFactory(f); gitFilter.setReceivePackFactory(f);
} }

+ 0
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsBlockCache.java Переглянути файл

return true; return true;
} }


@SuppressWarnings("unchecked")
private <T> T scan(HashEntry n, DfsPackKey pack, long position) { private <T> T scan(HashEntry n, DfsPackKey pack, long position) {
Ref<T> r = scanRef(n, pack, position); Ref<T> r = scanRef(n, pack, position);
return r != null ? r.get() : null; return r != null ? r.get() : null;

+ 0
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java Переглянути файл

} }
} }


@SuppressWarnings("unchecked")
public Collection<CachedPack> getCachedPacks() throws IOException { public Collection<CachedPack> getCachedPacks() throws IOException {
DfsPackFile[] packList = db.getPacks(); DfsPackFile[] packList = db.getPacks();
List<CachedPack> cached = new ArrayList<CachedPack>(packList.length); List<CachedPack> cached = new ArrayList<CachedPack>(packList.length);

+ 0
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsRepositoryBuilder.java Переглянути файл

* the repository could not be accessed to configure the rest of * the repository could not be accessed to configure the rest of
* the builder's parameters. * the builder's parameters.
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public abstract R build() throws IOException; public abstract R build() throws IOException;



Завантаження…
Відмінити
Зберегти