summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-11-04 18:39:06 +0100
committerJon Bratseth <bratseth@gmail.com>2020-11-04 18:39:06 +0100
commita72b6152b4a16978db0731872e319af2ae63a0ac (patch)
tree00e0f6ce6139110299c2ee4d5c8106be612a282f /jdisc_core
parentac8b4ebae4796b275ff71cc15eb259a22797a913 (diff)
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, 2 insertions, 3 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 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<LogService,LogService>() {
+ tracker = new ServiceTracker<>(osgiContext, LogService.class, new ServiceTrackerCustomizer<>() {
@Override
public LogService addingService(ServiceReference<LogService> reference) {