Removed unused private variable containerAwareRegistration - please 43/343/1
authorNatarajan P <natp@cisco.com>
Tue, 14 May 2013 17:36:26 +0000 (23:06 +0530)
committerNatarajan P <natp@cisco.com>
Tue, 14 May 2013 17:36:26 +0000 (23:06 +0530)
review this change

Change-Id: I4c6e16dcc3fe08ff44f2ad225238391165b1fcd9
Signed-off-by: Natarajan P<natp@cisco.com>
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java

index 88a829ba0464ab7c57e2c0d320666df78d2a7175..0dac89f7e82b516cb7929a52f2d693d5f66505a1 100644 (file)
@@ -45,7 +45,6 @@ abstract public class ComponentActivatorAbstractBase implements
         BundleActivator, IContainerAware {
     Logger logger = LoggerFactory
             .getLogger(ComponentActivatorAbstractBase.class);
         BundleActivator, IContainerAware {
     Logger logger = LoggerFactory
             .getLogger(ComponentActivatorAbstractBase.class);
-    private ServiceRegistration containerAwareRegistration;
     private DependencyManager dm;
     private ConcurrentMap<ImmutablePair<String, Object>, Component> dbInstances = (ConcurrentMap<ImmutablePair<String, Object>, Component>) new ConcurrentHashMap<ImmutablePair<String, Object>, Component>();
     private ConcurrentMap<Object, Component> dbGlobalInstances = (ConcurrentMap<Object, Component>) new ConcurrentHashMap<Object, Component>();
     private DependencyManager dm;
     private ConcurrentMap<ImmutablePair<String, Object>, Component> dbInstances = (ConcurrentMap<ImmutablePair<String, Object>, Component>) new ConcurrentHashMap<ImmutablePair<String, Object>, Component>();
     private ConcurrentMap<Object, Component> dbGlobalInstances = (ConcurrentMap<Object, Component>) new ConcurrentHashMap<Object, Component>();
@@ -356,9 +355,9 @@ abstract public class ComponentActivatorAbstractBase implements
                     }
                 }
             }
                     }
                 }
             }
-
+            
             // Register with OSGi the provider for the service IContainerAware
             // Register with OSGi the provider for the service IContainerAware
-            this.containerAwareRegistration = context.registerService(
+            context.registerService(
                     IContainerAware.class.getName(), this, null);
 
             // Now call the derived class init function
                     IContainerAware.class.getName(), this, null);
 
             // Now call the derived class init function