summaryrefslogtreecommitdiffstats
path: root/appc-metric
diff options
context:
space:
mode:
authorDriptaroop Das <driptaroop.das@in.ibm.com>2019-01-22 15:17:52 +0530
committerPatrick Brady <patrick.brady@att.com>2019-01-30 21:46:44 +0000
commit9c9ba25dd74787ca0a6cd0e5811d7b56708acaa4 (patch)
treee79558df1d22d4a5a20bb932c84a9accc0189b55 /appc-metric
parent09da4f91bcfe2e9fb3eab992f2ead8c424a1cfad (diff)
Multiple Sonar Fixes
Multiple Sonar Fixes Issue-ID: APPC-1353 Change-Id: I5bdf2119e886a58606bf6192b97c9ae43e4e0069 Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'appc-metric')
-rw-r--r--appc-metric/appc-metric-bundle/src/main/java/org/onap/appc/MetricActivator.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/appc-metric/appc-metric-bundle/src/main/java/org/onap/appc/MetricActivator.java b/appc-metric/appc-metric-bundle/src/main/java/org/onap/appc/MetricActivator.java
index 2e1958fa4..4d3c4e4ac 100644
--- a/appc-metric/appc-metric-bundle/src/main/java/org/onap/appc/MetricActivator.java
+++ b/appc-metric/appc-metric-bundle/src/main/java/org/onap/appc/MetricActivator.java
@@ -36,8 +36,6 @@ import org.osgi.framework.ServiceRegistration;
public class MetricActivator implements BundleActivator {
- private ServiceRegistration registration = null;
-
private static final EELFLogger logger = EELFManager.getInstance().getLogger(MetricActivator.class);
@Override
@@ -46,7 +44,7 @@ public class MetricActivator implements BundleActivator {
MetricService impl = new MetricServiceImpl();
String regName = MetricService.class.getName();
logger.debug("Registering Metric service " + regName);
- registration = bundleContext.registerService(regName, impl, null);
+ ServiceRegistration registration = bundleContext.registerService(regName, impl, null);
logger.debug("Registered Metric service " + regName);
}