diff options
author | Arnstein Ressem <aressem@gmail.com> | 2020-11-04 21:18:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 21:18:19 +0100 |
commit | 302067c37d644df89c7968938acf0236d624d045 (patch) | |
tree | 34432c45d2ec3779da3091040fedfe25d616660b /jdisc_core | |
parent | 19f9396e6b60e49c7830d78d504a14c015600f2b (diff) |
Revert "Override in variant references"
Diffstat (limited to 'jdisc_core')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java | 5 |
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) { |