summaryrefslogtreecommitdiffstats
path: root/restapi-call-node/provider/src/main/java
diff options
context:
space:
mode:
authorsurya-huawei <a.u.surya@huawei.com>2017-09-17 23:25:14 +0530
committersurya-huawei <a.u.surya@huawei.com>2017-09-17 23:25:14 +0530
commit342453d02784a1bd791848db8af9e3f927710ec0 (patch)
tree84df0d694f89f4e2dfd046c559891a85043af920 /restapi-call-node/provider/src/main/java
parent9342e92c2557dfc7df213b37e3957f282342b2eb (diff)
Fix Sonar Issue in sli/plugins module
One major issue * move string literal to left side of string comparison Issue-Id: CCSDK-87 Change-Id: I1277c4c5515bd45ad6854c63cf6160f17b7725d0 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
Diffstat (limited to 'restapi-call-node/provider/src/main/java')
-rw-r--r--restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
index 4984d1bc..ca227c72 100644
--- a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
+++ b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
@@ -559,7 +559,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
p.httpMethod = HttpMethod.fromString(parseParam(paramMap, "httpMethod", false, "post"));
p.responsePrefix = parseParam(paramMap, "responsePrefix", false, null);
String skipSendingStr = paramMap.get("skipSending");
- p.skipSending = skipSendingStr != null && skipSendingStr.equalsIgnoreCase("true");
+ p.skipSending = "true".equalsIgnoreCase(skipSendingStr);
return p;
}