Fix raw type warnings 91/97291/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Aug 2021 13:09:44 +0000 (15:09 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Aug 2021 13:10:44 +0000 (15:10 +0200)
Component{Factory,Instance} are generic with OSGi R7, fix a few raw type
warnings.

Change-Id: I6a923e164a99d0e1959d217401116e0bf381b930
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-password-service/impl/src/main/java/org/opendaylight/aaa/impl/password/service/OSGiPasswordServiceConfigBootstrap.java

index 8cb741bb1a68e422096485cb38a885eb16b88cd3..e98caab2ec2b92ce4aa931b583b5e47530e7d692 100644 (file)
@@ -39,10 +39,10 @@ public final class OSGiPasswordServiceConfigBootstrap
     DataBroker dataBroker = null;
 
     @Reference(target = "(component.factory=" + OSGiPasswordServiceConfig.FACTORY_NAME + ")")
-    ComponentFactory configFactory = null;
+    ComponentFactory<OSGiPasswordServiceConfig> configFactory = null;
 
     private ListenerRegistration<?> registration;
-    private ComponentInstance instance;
+    private ComponentInstance<?> instance;
 
     @Activate
     synchronized void activate() {
@@ -77,7 +77,7 @@ public final class OSGiPasswordServiceConfigBootstrap
     @Holding("this")
     private void updateInstance(final PasswordServiceConfig config) {
         if (registration != null) {
-            final ComponentInstance newInstance = configFactory.newInstance(
+            final ComponentInstance<?> newInstance = configFactory.newInstance(
                 OSGiPasswordServiceConfig.props(config != null ? config : new PasswordServiceConfigBuilder().build()));
             if (instance != null) {
                 instance.dispose();