From 958e34e8d238aa628dbc3f367d52b57aa95cb86f Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sat, 24 Jul 2021 20:05:40 +0200 Subject: [PATCH] Fix raw type warnings ComponentFactory now takes a proper generic argument, update to use it. Change-Id: I67e2c7d1107240604e80e4b14edd5841953ac17b Signed-off-by: Robert Varga --- .../mdsal/dom/schema/osgi/impl/OSGiDOMSchemaService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/mdsal-dom-schema-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/osgi/impl/OSGiDOMSchemaService.java b/dom/mdsal-dom-schema-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/osgi/impl/OSGiDOMSchemaService.java index 567f10a862..c36fd3ecfc 100644 --- a/dom/mdsal-dom-schema-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/osgi/impl/OSGiDOMSchemaService.java +++ b/dom/mdsal-dom-schema-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/osgi/impl/OSGiDOMSchemaService.java @@ -43,7 +43,7 @@ public final class OSGiDOMSchemaService extends AbstractDOMSchemaService.WithYan private static final Logger LOG = LoggerFactory.getLogger(OSGiDOMSchemaService.class); @Reference(target = "(component.factory=" + EffectiveModelContextImpl.FACTORY_NAME + ")") - ComponentFactory listenerFactory = null; + ComponentFactory listenerFactory = null; private final List listeners = new CopyOnWriteArrayList<>(); @@ -101,7 +101,8 @@ public final class OSGiDOMSchemaService extends AbstractDOMSchemaService.WithYan private @NonNull ListenerRegistration registerListener( final @NonNull EffectiveModelContextListener listener) { - final ComponentInstance reg = listenerFactory.newInstance(EffectiveModelContextImpl.props(listener)); + final ComponentInstance reg = + listenerFactory.newInstance(EffectiveModelContextImpl.props(listener)); return new ListenerRegistration<>() { @Override public EffectiveModelContextListener getInstance() { -- 2.36.6