summaryrefslogtreecommitdiffstats
path: root/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java
diff options
context:
space:
mode:
authorHailong Zhang <zhanghailong22@huawei.com>2019-09-04 15:40:25 +0800
committerHailong Zhang <zhanghailong22@huawei.com>2019-09-04 15:47:38 +0800
commit9c07c95e34bbc24022cb49efa584234f4067534a (patch)
tree696f131129b806fd288bb4ce94a883562f01a707 /csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java
parent26514e7bb8b174ba5bbbcf903b697160eb397e03 (diff)
modify Sonar Issue
Issue-ID: VNFSDK-462 Signed-off-by: Hailong Zhang <zhanghailong22@huawei.com> Change-Id: I010d99d82c1ac8919907cf70ea4f8893e0a4b06d
Diffstat (limited to 'csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java')
-rw-r--r--csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java
index c5f6319..12fcf28 100644
--- a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java
+++ b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR32155.java
@@ -43,7 +43,7 @@ public class VTPValidateCSARR32155 extends VTPValidateCSARBase {
yaml = (Map<String, ?>) yaml.get("topology_template");
Map<String, ?> yamlTmpls = (Map<String, ?>) yaml.get("node_templates");
- boolean vlExist[] = new boolean[2];
+ boolean []vlExist = new boolean[2];
for (Object node0 : yamlTmpls.values()) {
@@ -52,12 +52,12 @@ public class VTPValidateCSARR32155 extends VTPValidateCSARBase {
if (node.containsKey("type")) {
String type = (String) node.get("type");
- if (type.equalsIgnoreCase("tosca.nodes.nfv.VnfVirtualLinkDesc")) {
+ if ("tosca.nodes.nfv.VnfVirtualLinkDesc".equalsIgnoreCase(type)) {
vlExist[0] = true;
}
- if (type.equalsIgnoreCase("tosca.capabilities.nfv.VirtualLinkable")) {
+ if ("tosca.capabilities.nfv.VirtualLinkable".equalsIgnoreCase(type)) {
vlExist[1] = true;
}