Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-02-23 19:30:43 +0000
committerAlexander Kurtakov2015-02-24 17:02:51 +0000
commitf92c74ac081d929a7ce96a85b26bf60b5364a101 (patch)
tree5a1aa1399e9457f34e46d10ae3eaadeeadc3e662 /bundles/org.eclipse.equinox.p2.directorywatcher/src
parent35349322363fd8fd75eb82abba9cb6ee0a86bb1a (diff)
downloadrt.equinox.p2-f92c74ac081d929a7ce96a85b26bf60b5364a101.tar.gz
rt.equinox.p2-f92c74ac081d929a7ce96a85b26bf60b5364a101.tar.xz
rt.equinox.p2-f92c74ac081d929a7ce96a85b26bf60b5364a101.zip
Bug 460627 - Fix compiler problems from generified IAdaptable#getAdapter
Generify where needed and bump the min version requirement for o.e.core.runtime and o.e.equinox.common to ensure that generified dependency will be used. Change-Id: I3e177a3c8384b5aaabe4c77c949e9802e53923b1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
index d7f4cf9f6..96400552d 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
@@ -1,11 +1,12 @@
/*******************************************************************************
- * Copyright (c) 2008, 2011 Code 9 and others. All rights reserved. This
+ * Copyright (c) 2008, 2015 Code 9 and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Code 9 - initial API and implementation
+ * Red Hat Inc. - Fix compiler problems from generified IAdaptable#getAdapter
******************************************************************************/
package org.eclipse.equinox.internal.provisional.p2.directorywatcher;
@@ -324,9 +325,7 @@ public class CachingArtifactRepository implements IArtifactRepository, IFileArti
return setProperty(key, value, new NullProgressMonitor());
}
- // don't suppress the warning as it will cause warnings in the official build
- // see bug 423628. Entire hierarchy should be refactored to use generics.
- public Object getAdapter(Class adapter) {
+ public <T> T getAdapter(Class<T> adapter) {
return innerRepo.getAdapter(adapter);
}

Back to the top