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 "default" string literal on the left side of this string comparison.
Issue-Id: APPC-186
Change-Id: I5d503e08331a867b2871dee7acfe74112228bf16
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
if (version == null || version.equals(cs.getAic_version())) {
return cs;
}
- } else if (cs.getId().equalsIgnoreCase("default")) {
+ } else if ("default".equalsIgnoreCase(cs.getId())) {
// save it off in case we need it
defaultCloudSite = cs.clone();
}