Fix major sonar issues in so module
https://sonar.onap.org/component_issues?id=org.openecomp.so%3Aso#resolved=false|severities=BLOCKER%2CMAJOR|rules=squid%3AS1132%2Csquid%3AS1143
Move the "true" string literal on the left side of this string comparison
Issue-Id: APPC-186
Change-Id: I1223f769c06673b9b4817f2cd3965b6bf429f0ef
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
try {\r
String resourceType = resourceStructure.getResourceInstance().getResourceType();\r
String category = resourceStructure.getResourceInstance().getCategory();\r
- if(resourceType.equals("VF") && !category.equalsIgnoreCase("Allotted Resource")){\r
+ if("VF".equals(resourceType) && !"Allotted Resource".equalsIgnoreCase(category)){\r
resourceStructure.createVfModuleStructures();\r
}\r
//resourceInstaller.installTheResource (resourceStructure);\r