Fix raw type warnings in OSGiDistributedDataStore 05/101305/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 26 May 2022 17:05:52 +0000 (19:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 26 May 2022 17:06:38 +0000 (19:06 +0200)
Component{Factory,Instance} are now properly generic, specify arguments
pointing to OSGiDOMStore.

Change-Id: I4593b18df88302f933647ed09818633d76efca41
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OSGiDistributedDataStore.java

index 1480643e0b084a0e2ffc733c8210bf5aedd7928d..a0f6937344ed4df0efecee05ca5c9a59cb3cbcd8 100644 (file)
@@ -53,7 +53,7 @@ public final class OSGiDistributedDataStore {
         private final String serviceType;
 
         @GuardedBy("this")
-        private ComponentInstance component;
+        private ComponentInstance<OSGiDOMStore> component;
         @GuardedBy("this")
         private boolean stopped;
 
@@ -122,7 +122,7 @@ public final class OSGiDistributedDataStore {
     @Reference
     ModuleShardConfigProvider configProvider = null;
     @Reference(target = "(component.factory=" + OSGiDOMStore.FACTORY_NAME + ")")
-    ComponentFactory datastoreFactory = null;
+    ComponentFactory<OSGiDOMStore> datastoreFactory = null;
 
     private DatastoreState configDatastore;
     private DatastoreState operDatastore;