Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2015-06-03 06:42:10 -0400
committerMatthias Sohn2015-06-03 06:42:10 -0400
commite441bd6794aaecd4de88b9d73b2b9f9cba218634 (patch)
tree4d655f1c280ea09dc7f0ca9dc9faa45cf3416da6
parentb98b99843bd1983a7ad538d227dffa6aaafeaf31 (diff)
downloadegit-e441bd6794aaecd4de88b9d73b2b9f9cba218634.tar.gz
egit-e441bd6794aaecd4de88b9d73b2b9f9cba218634.tar.xz
egit-e441bd6794aaecd4de88b9d73b2b9f9cba218634.zip
Silence unchecked conversion warnings in GitFlowAdapterFactory
Change-Id: I5b20fbf53fda03adfa60593bfcb89f8fdd7f62f3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.gitflow.ui/src/org/eclipse/egit/gitflow/ui/internal/factories/GitFlowAdapterFactory.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.gitflow.ui/src/org/eclipse/egit/gitflow/ui/internal/factories/GitFlowAdapterFactory.java b/org.eclipse.egit.gitflow.ui/src/org/eclipse/egit/gitflow/ui/internal/factories/GitFlowAdapterFactory.java
index 2b825979e..259188658 100644
--- a/org.eclipse.egit.gitflow.ui/src/org/eclipse/egit/gitflow/ui/internal/factories/GitFlowAdapterFactory.java
+++ b/org.eclipse.egit.gitflow.ui/src/org/eclipse/egit/gitflow/ui/internal/factories/GitFlowAdapterFactory.java
@@ -20,6 +20,7 @@ import org.eclipse.team.ui.history.IHistoryView;
* Get JGit repository for element selected in Git Flow UI.
*/
public class GitFlowAdapterFactory implements IAdapterFactory {
+ @SuppressWarnings("unchecked")
@Override
public Repository getAdapter(Object adaptableObject, Class adapterType) {
Repository repository = null;
@@ -49,6 +50,7 @@ public class GitFlowAdapterFactory implements IAdapterFactory {
return mapping != null ? mapping.getRepository() : null;
}
+ @SuppressWarnings("unchecked")
@Override
public Class[] getAdapterList() {
return new Class[] { IResource.class, IHistoryView.class };

Back to the top