From a72b6152b4a16978db0731872e319af2ae63a0ac Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 4 Nov 2020 18:39:06 +0100 Subject: Override in variant references --- jdisc_core/src/main/java/com/yahoo/jdisc/core/OsgiLogManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'jdisc_core') 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 5b0367c5a55..ee1939d9bbe 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,12 +26,11 @@ class OsgiLogManager implements LogService { this.configureLogLevel = configureLogLevel; } - @SuppressWarnings("unchecked") - public void install(final BundleContext osgiContext) { + public void install(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<>() { @Override public LogService addingService(ServiceReference reference) { -- cgit v1.2.3