Sonar fixes in "appc-netconf-adapter-bundle"
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-adapter-bundle / src / main / java / org / onap / appc / adapter / netconf / AppcNetconfAdapterActivator.java
index 70438d7..33bf331 100644 (file)
@@ -26,9 +26,6 @@ package org.onap.appc.adapter.netconf;
 
 import org.onap.appc.adapter.netconf.internal.NetconfDataAccessServiceImpl;
 import org.onap.ccsdk.sli.core.dblib.DbLibService;
-import org.onap.appc.i18n.Msg;
-import com.att.eelf.configuration.EELFLogger;
-import com.att.eelf.configuration.EELFManager;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
@@ -43,10 +40,6 @@ public class AppcNetconfAdapterActivator implements BundleActivator {
     private ServiceRegistration reporterRegistration = null;
     private ServiceRegistration factoryRegistration = null;
     private ServiceRegistration dbRegistration = null;
-    /**
-     * The logger to be used
-     */
-    private static final EELFLogger logger = EELFManager.getInstance().getLogger(AppcNetconfAdapterActivator.class);
 
     /**
      * Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start
@@ -71,17 +64,13 @@ public class AppcNetconfAdapterActivator implements BundleActivator {
             */
             NetconfClientFactory clientFactory = new NetconfClientFactory();                
             factoryRegistration = context.registerService(NetconfClientFactory.class, clientFactory, null);
-            NetconfDataAccessService DAService = new NetconfDataAccessServiceImpl();
+            NetconfDataAccessService dataAccessService = new NetconfDataAccessServiceImpl();
             //set dblib service
-            DbLibService dblibSvc = null;
             ServiceReference sref = context.getServiceReference(DbLibService.class.getName());
-            dblibSvc  = (DbLibService)context.getService(sref);
-            DAService.setDbLibService(dblibSvc);
+            dataAccessService.setDbLibService((DbLibService)context.getService(sref));
             ///////////////////////////////////
-            factoryRegistration = context.registerService(NetconfDataAccessService.class, DAService, null);
+            factoryRegistration = context.registerService(NetconfDataAccessService.class, dataAccessService, null);
         }
-
-        //logger.info(Msg.COMPONENT_INITIALIZED, "NETCONF adapter");
     }
 
     /**
@@ -122,9 +111,4 @@ public class AppcNetconfAdapterActivator implements BundleActivator {
             dbRegistration = null;
         }
     }
-
-    public String getName() {
-        return "APPC NETCONF adapter";
-    }
-
 }