Sonar fix: DataChangeProvider.java
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 18 Dec 2018 09:37:22 +0000 (15:07 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Tue, 18 Dec 2018 09:37:34 +0000 (15:07 +0530)
Fixed sonar issues/code-smells across this file

Issue-ID: CCSDK-852
Change-Id: I73630a11c44105996ed677f7eabb6ea3ffcc501d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java

index 40ebde6..6b4f1eb 100644 (file)
@@ -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
                                {