summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2020-11-04 21:18:19 +0100
committerGitHub <noreply@github.com>2020-11-04 21:18:19 +0100
commit302067c37d644df89c7968938acf0236d624d045 (patch)
tree34432c45d2ec3779da3091040fedfe25d616660b /jdisc_core
parent19f9396e6b60e49c7830d78d504a14c015600f2b (diff)
Revert "Override in variant references"
Diffstat (limited to 'jdisc_core')
-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) {