summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core/src')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java
index ee1939d9bbe..5b0367c5a55 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java
@@ -26,11 +26,12 @@ class OsgiLogManager implements LogService {
this.configureLogLevel = configureLogLevel;
}
- public void install(BundleContext osgiContext) {
+ @SuppressWarnings("unchecked")
+ public void install(final BundleContext osgiContext) {
if (tracker != null) {
throw new IllegalStateException("OsgiLogManager already installed.");
}
- tracker = new ServiceTracker<>(osgiContext, LogService.class, new ServiceTrackerCustomizer<>() {
+ tracker = new ServiceTracker<>(osgiContext, LogService.class, new ServiceTrackerCustomizer<LogService,LogService>() {
@Override
public LogService addingService(ServiceReference<LogService> reference) {