Merge "Removed unused private variable containerAwareRegistration - please review...
authorGiovanni Meo <gmeo@cisco.com>
Wed, 15 May 2013 13:57:37 +0000 (13:57 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 15 May 2013 13:57:37 +0000 (13:57 +0000)
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);
-    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>();
@@ -356,9 +355,9 @@ abstract public class ComponentActivatorAbstractBase implements
                     }
                 }
             }
-
+            
             // 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