appc-network-client-provider sonar fixes part 1
[appc.git] / appc-outbound / appc-network-inventory-client / provider / src / main / java / org / onap / appc / instar / InstarClientActivator.java
index 09021da..f36ede8 100644 (file)
 
 package org.onap.appc.instar;
 
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
 import java.util.LinkedList;
 import java.util.List;
-
 import org.onap.appc.instar.node.InstarClientNode;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceRegistration;
 
-import com.att.eelf.configuration.EELFLogger;
-import com.att.eelf.configuration.EELFManager;
-
-public class InstarClientActivator implements BundleActivator{
-
-       private List<ServiceRegistration> registrations = new LinkedList<ServiceRegistration>();
-       private static final EELFLogger log = EELFManager.getInstance().getLogger(InstarClientActivator.class);
+public class InstarClientActivator implements BundleActivator {
 
-       @Override
-       public void start(BundleContext ctx) throws Exception
-       {
+    private List<ServiceRegistration> registrations = new LinkedList<ServiceRegistration>();
+    private static final EELFLogger log = EELFManager.getInstance().getLogger(InstarClientActivator.class);
 
-               InstarClientNode instarClientNode = new InstarClientNode();
-               log.info("Registering service "+ instarClientNode.getClass().getName());
-               registrations.add(ctx.registerService(instarClientNode.getClass().getName(), instarClientNode, null));
-               log.info("Registering service sccessful for  "+ instarClientNode.getClass().getName());
+    @Override
+    public void start(BundleContext ctx) throws Exception {
 
-       }
-       @Override
-       public void stop(BundleContext arg0) throws Exception
-       {
-               for (ServiceRegistration registration: registrations)
-               {
-                       registration.unregister();
-                       registration = null;
-               }
+        InstarClientNode instarClientNode = new InstarClientNode();
+        log.info("Registering service " + instarClientNode.getClass().getName());
+        registrations.add(ctx.registerService(instarClientNode.getClass().getName(), instarClientNode, null));
+        log.info("Registering service sccessful for  " + instarClientNode.getClass().getName());
+    }
 
-       }
+    @Override
+    public void stop(BundleContext arg0) throws Exception {
+        for (ServiceRegistration registration : registrations) {
+            registration.unregister();
+            registration = null;
+        }
 
+    }
 }