Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2010-11-03 13:29:57 -0400
committerJohn Arthorne2010-11-03 13:29:57 -0400
commitd51232370d9612b69ade370242fe8ef77827595f (patch)
treeec140e93cd83b77c54ab1fefd44f1d756fbd2dd2 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parent54d89d1011dafa556004d55215e3712c5e567026 (diff)
downloadrt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.tar.gz
rt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.tar.xz
rt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.zip
Fixed compiler warnings
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/LazyManipulator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/LazyManipulator.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/LazyManipulator.java
index 4303c60e8..cafd922c4 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/LazyManipulator.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/LazyManipulator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * Copyright (c) 2007, 2010 IBM Corporation 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
@@ -68,12 +68,12 @@ public class LazyManipulator implements Manipulator {
}
public static FrameworkAdmin getFrameworkAdmin() {
- ServiceTracker fwAdminTracker = null;
+ ServiceTracker<FrameworkAdmin, FrameworkAdmin> fwAdminTracker = null;
try {
Filter filter = Activator.getContext().createFilter(filterFwAdmin);
- fwAdminTracker = new ServiceTracker(Activator.getContext(), filter, null);
+ fwAdminTracker = new ServiceTracker<FrameworkAdmin, FrameworkAdmin>(Activator.getContext(), filter, null);
fwAdminTracker.open();
- FrameworkAdmin fwAdmin = (FrameworkAdmin) fwAdminTracker.getService();
+ FrameworkAdmin fwAdmin = fwAdminTracker.getService();
return fwAdmin;
} catch (InvalidSyntaxException e) {
//Can't happen we are writing the filter ourselves

Back to the top