diff options
author | Eike Stepper | 2015-03-24 09:50:35 +0000 |
---|---|---|
committer | Eike Stepper | 2015-03-24 09:50:35 +0000 |
commit | 20582a73ebe7c16c9b3a5621e5dbd4c80f2f6d46 (patch) | |
tree | 719a0ecfec4b5974e824adf325443b8934231833 /plugins/org.eclipse.emf.cdo.explorer/src | |
parent | dbc9cff6f1b9638fb4afb0c707cc19156483c6ca (diff) | |
download | cdo-20582a73ebe7c16c9b3a5621e5dbd4c80f2f6d46.tar.gz cdo-20582a73ebe7c16c9b3a5621e5dbd4c80f2f6d46.tar.xz cdo-20582a73ebe7c16c9b3a5621e5dbd4c80f2f6d46.zip |
[Releng] Adjust to generification of getAdapter()
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer/src')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDOExplorerAdapterFactory.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDOExplorerAdapterFactory.java b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDOExplorerAdapterFactory.java index beeb914f9d..ca53f82505 100644 --- a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDOExplorerAdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDOExplorerAdapterFactory.java @@ -25,23 +25,23 @@ import org.eclipse.core.runtime.IAdapterFactory; /** * @since 4.4 */ -@SuppressWarnings("rawtypes") public class CDOExplorerAdapterFactory implements IAdapterFactory { private static final Class<CDORepositoryElement> CLASS_CDOREPOSITORYELEMENT = CDORepositoryElement.class; - private static final Class[] CLASSES = { CLASS_CDOREPOSITORYELEMENT }; + private static final Class<?>[] CLASSES = { CLASS_CDOREPOSITORYELEMENT }; public CDOExplorerAdapterFactory() { } - public Class[] getAdapterList() + public Class<?>[] getAdapterList() { return CLASSES; } - public Object getAdapter(Object adaptableObject, Class adapterType) + @SuppressWarnings("unchecked") + public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) { if (adapterType == CLASS_CDOREPOSITORYELEMENT) { @@ -66,7 +66,7 @@ public class CDOExplorerAdapterFactory implements IAdapterFactory final CDORepository repository = repositoryManager.getRepository(repositoryInfo.getSession()); if (repository != null) { - return new CDORepositoryElement() + return (T)new CDORepositoryElement() { public CDORepository getRepository() { |