diff options
author | rama-huawei <rama.subba.reddy.s@huawei.com> | 2017-09-22 21:21:03 +0530 |
---|---|---|
committer | Rama SubbaReddy <rama.subba.reddy.s@huawei.com> | 2017-09-22 16:07:38 +0000 |
commit | 7a3a92244477e0b4f165657eeea9de3921cb3400 (patch) | |
tree | 96190486b23c0b30cd7b30998b79d8cb01d18b02 /adapters/mso-sdnc-adapter/src/main/java/org | |
parent | f55f9a5b3f48e14a010838739111ec71728d84fe (diff) |
Replaced with Diamond symbol
Removed useless parentheses
Issue-Id:SO-118
Change-Id: I79c55aebe53e82bc649c4524e5a1029a5b7a496f
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'adapters/mso-sdnc-adapter/src/main/java/org')
-rw-r--r-- | adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/sdncrest/TypedRequestTunables.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/sdncrest/TypedRequestTunables.java b/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/sdncrest/TypedRequestTunables.java index 6638263d1a..72fca989f6 100644 --- a/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/sdncrest/TypedRequestTunables.java +++ b/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/sdncrest/TypedRequestTunables.java @@ -148,7 +148,7 @@ public class TypedRequestTunables { String value = properties.getProperty(key, ""); - if (value.equals("")) { + if ("".equals(value)) { error = "Missing configuration for: " + key; LOGGER.error(MessageEnum.RA_SDNC_MISS_CONFIG_PARAM, key, "SDNC", "", MsoLogger.ErrorCode.DataError, "Missing config param"); ALARMLOGGER.sendAlarm("MsoInternalError", MsoAlarmLogger.CRITICAL, error); @@ -173,7 +173,7 @@ public class TypedRequestTunables { String urlPropKey = Constants.REQUEST_TUNABLES + "." + parts[2]; sdncUrl = properties.getProperty(urlPropKey, ""); - if (sdncUrl.equals("")) { + if ("".equals(sdncUrl)) { error = "Missing configuration for: " + urlPropKey; LOGGER.error(MessageEnum.RA_SDNC_MISS_CONFIG_PARAM, urlPropKey, "SDNC", "", MsoLogger.ErrorCode.DataError, "Missing config param"); ALARMLOGGER.sendAlarm("MsoInternalError", MsoAlarmLogger.CRITICAL, error); @@ -190,7 +190,7 @@ public class TypedRequestTunables { myUrl = properties.getProperty(Constants.MY_URL_PROP, ""); - if (myUrl.equals("")) { + if ("".equals(myUrl)) { error = "Missing configuration for: " + Constants.MY_URL_PROP; LOGGER.error(MessageEnum.RA_SDNC_MISS_CONFIG_PARAM, Constants.MY_URL_PROP, "SDNC", "", MsoLogger.ErrorCode.DataError, "Missing config param"); @@ -221,4 +221,4 @@ public class TypedRequestTunables { + (myUrl == null ? "" : ", myUrl=" + myUrl) + "]"; } -}
\ No newline at end of file +} |