From 9c07c95e34bbc24022cb49efa584234f4067534a Mon Sep 17 00:00:00 2001 From: Hailong Zhang Date: Wed, 4 Sep 2019 15:40:25 +0800 Subject: modify Sonar Issue Issue-ID: VNFSDK-462 Signed-off-by: Hailong Zhang Change-Id: I010d99d82c1ac8919907cf70ea4f8893e0a4b06d --- .../main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java') diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java index 407d872..4ffe003 100644 --- a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java +++ b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol001/VTPValidateCSARR09467.java @@ -56,12 +56,12 @@ public class VTPValidateCSARR09467 extends VTPValidateCSARBase { Map node = (Map) nodeO; if (node.containsKey("type")) { String type = (String)node.get("type"); - if (type.equalsIgnoreCase("tosca.nodes.nfv.VDU.Compute")) { + if ("tosca.nodes.nfv.VDU.Compute".equalsIgnoreCase(type)) { computeExist = true; } - if (type.equalsIgnoreCase("tosca.nodes.nfv.VDU.VirtualStorage")) { + if ("tosca.nodes.nfv.VDU.VirtualStorage".equalsIgnoreCase(type)) { storageExist = true; } -- cgit 1.2.3-korg