diff options
| author | Paul Webster | 2014-04-14 18:37:56 +0000 |
|---|---|---|
| committer | Paul Webster | 2014-04-14 18:37:56 +0000 |
| commit | b7fd0a962682df2715098f840fd8e31727f0bedc (patch) | |
| tree | ce9a043b30dbf55556324f3dafefb1a6a5a058e3 | |
| parent | 2c85691e062a7efcadbbb0cc7792ad7a4b5c0484 (diff) | |
| download | eclipse.platform.runtime-b7fd0a962682df2715098f840fd8e31727f0bedc.tar.gz eclipse.platform.runtime-b7fd0a962682df2715098f840fd8e31727f0bedc.tar.xz eclipse.platform.runtime-b7fd0a962682df2715098f840fd8e31727f0bedc.zip | |
Bug 418661 - [Metadata] Get rid of compile warnings in official build
Fix warnings in org.eclipse.e4.core.di
| -rw-r--r-- | bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/osgi/DIActivator.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/osgi/DIActivator.java b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/osgi/DIActivator.java index f0266e69e..f35f1562a 100644 --- a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/osgi/DIActivator.java +++ b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/osgi/DIActivator.java @@ -20,8 +20,8 @@ public class DIActivator implements BundleActivator { static private DIActivator defaultInstance; private BundleContext bundleContext; - private ServiceTracker debugTracker = null; - private ServiceTracker logTracker = null; + private ServiceTracker<DebugOptions, DebugOptions> debugTracker = null; + private ServiceTracker<FrameworkLog, FrameworkLog> logTracker = null; public DIActivator() { defaultInstance = this; @@ -54,10 +54,10 @@ public class DIActivator implements BundleActivator { public boolean getBooleanDebugOption(String option, boolean defaultValue) { if (debugTracker == null) { - debugTracker = new ServiceTracker(bundleContext, DebugOptions.class.getName(), null); + debugTracker = new ServiceTracker<DebugOptions, DebugOptions>(bundleContext, DebugOptions.class, null); debugTracker.open(); } - DebugOptions options = (DebugOptions) debugTracker.getService(); + DebugOptions options = debugTracker.getService(); if (options != null) { String value = options.getOption(option); if (value != null) @@ -70,10 +70,10 @@ public class DIActivator implements BundleActivator { if (logTracker == null) { if (bundleContext == null) return null; - logTracker = new ServiceTracker(bundleContext, FrameworkLog.class.getName(), null); + logTracker = new ServiceTracker<FrameworkLog, FrameworkLog>(bundleContext, FrameworkLog.class, null); logTracker.open(); } - return (FrameworkLog) logTracker.getService(); + return logTracker.getService(); } } |
