summaryrefslogtreecommitdiffstats
path: root/sliapi/provider/src/main
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-12-19 12:51:57 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-12-19 12:52:44 +0530
commite2658052130acb19ee0ed042e5a0895ba4d1f1c5 (patch)
treec52b744d7f7d6d7e0bd4451b02dc705d551d617a /sliapi/provider/src/main
parent3d57bfaf6c8a06769965e537555b3d63b5a43d14 (diff)
fixed sonar issues in sliapiProvider.java
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ia021b4b3d46251e5316e72cabae75a38cb0b00bc Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'sliapi/provider/src/main')
-rw-r--r--sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java b/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java
index e9a2b8eb2..667bae9bf 100644
--- a/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java
+++ b/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java
@@ -40,7 +40,6 @@ import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFaile
import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
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.core.sliapi.rev161110.ExecuteGraphInput;
import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.ExecuteGraphInput.Mode;
@@ -135,6 +134,7 @@ public class sliapiProvider implements AutoCloseable, SLIAPIService{
private static QName TEST_RESULT_QNAME = null;
private static QName TEST_ID_QNAME = null;
private static QName RESULTS_QNAME = null;
+ private static final String NON_NULL= "non-null";
static {
@@ -195,7 +195,7 @@ public class sliapiProvider implements AutoCloseable, SLIAPIService{
domDataBroker = ((AbstractForwardedDataBroker) dataBroker).getDelegate();
}
if( LOG.isDebugEnabled() ){
- LOG.debug( "DataBroker set to " + (dataBroker==null?"null":"non-null") + "." );
+ LOG.debug( "DataBroker set to " + (dataBroker==null?"null":NON_NULL) + "." );
}
}
@@ -203,14 +203,14 @@ public class sliapiProvider implements AutoCloseable, SLIAPIService{
NotificationPublishService notificationService) {
this.notificationService = notificationService;
if( LOG.isDebugEnabled() ){
- LOG.debug( "Notification Service set to " + (notificationService==null?"null":"non-null") + "." );
+ LOG.debug( "Notification Service set to " + (notificationService==null?"null":NON_NULL) + "." );
}
}
public void setRpcRegistry(RpcProviderRegistry rpcRegistry) {
this.rpcRegistry = rpcRegistry;
if( LOG.isDebugEnabled() ){
- LOG.debug( "RpcRegistry set to " + (rpcRegistry==null?"null":"non-null") + "." );
+ LOG.debug( "RpcRegistry set to " + (rpcRegistry==null?"null":NON_NULL) + "." );
}
}