From 0dad402fd01d72c76235d8a8c1d9b256e9de5042 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 18 Dec 2018 15:07:22 +0530 Subject: Sonar fix: DataChangeProvider.java Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-852 Change-Id: I73630a11c44105996ed677f7eabb6ea3ffcc501d Signed-off-by: Arundathi Patil --- .../main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dataChange/provider/src/main') diff --git a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java index 40ebde69..6b4f1ebc 100644 --- a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java +++ b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java @@ -4,6 +4,7 @@ * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights * reserved. + * Modifications Copyright © 2018 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +31,6 @@ import org.onap.ccsdk.sli.core.sli.provider.MdsalHelper; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker; -import org.opendaylight.controller.sal.binding.api.NotificationProviderService; import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.datachange.rev150519.DataChangeNotificationInput; import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.datachange.rev150519.DataChangeNotificationInputBuilder; @@ -123,7 +123,7 @@ public class DataChangeProvider implements AutoCloseable, DataChangeService { // Call SLI sync method try { - if (dataChangeClient.hasGraph("DataChange", svcOperation , null, "sync")) + if (dataChangeClient.hasGraph(APPLICATION_NAME, svcOperation , null, "sync")) { try { -- cgit 1.2.3-korg