Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java b/plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java
index aa286491f7..7a62b1b96a 100644
--- a/plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.ui.team/src/org/eclipse/emf/cdo/ui/internal/team/history/CDOHistoryAdapterFactory.java
@@ -16,27 +16,27 @@ import org.eclipse.team.ui.history.IHistoryPageSource;
/**
* @author Eike Stepper
*/
-@SuppressWarnings("rawtypes")
public class CDOHistoryAdapterFactory implements IAdapterFactory
{
private static final Class<IHistoryPageSource> CLASS_IHISTORYPAGESOURCE = IHistoryPageSource.class;
- private static final Class[] ADAPTER_TYPES = { CLASS_IHISTORYPAGESOURCE };
+ private static final Class<?>[] ADAPTER_TYPES = { CLASS_IHISTORYPAGESOURCE };
public CDOHistoryAdapterFactory()
{
}
- public Class[] getAdapterList()
+ public Class<?>[] getAdapterList()
{
return ADAPTER_TYPES;
}
- public Object getAdapter(Object adaptableObject, Class adapterType)
+ @SuppressWarnings("unchecked")
+ public <T> T getAdapter(Object adaptableObject, Class<T> adapterType)
{
if (adapterType == CLASS_IHISTORYPAGESOURCE)
{
- return CDOHistoryPageSource.INSTANCE;
+ return (T)CDOHistoryPageSource.INSTANCE;
}
return null;

Back to the top