summaryrefslogtreecommitdiffstats
path: root/appc-metric
diff options
context:
space:
mode:
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);
}