diff options
author | surya-huawei <a.u.surya@huawei.com> | 2017-09-17 23:25:14 +0530 |
---|---|---|
committer | surya-huawei <a.u.surya@huawei.com> | 2017-09-17 23:25:14 +0530 |
commit | 342453d02784a1bd791848db8af9e3f927710ec0 (patch) | |
tree | 84df0d694f89f4e2dfd046c559891a85043af920 /restapi-call-node/provider/src | |
parent | 9342e92c2557dfc7df213b37e3957f282342b2eb (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')
-rw-r--r-- | restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java | 2 |
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 4984d1bce..ca227c722 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; } |