Remove this return statement from this finally block
https://sonar.onap.org/component_issues?id=org.openecomp.so%3Aso#resolved=false|severities=BLOCKER
Issue-Id:SO-118
Change-Id: I6933ec089e6030d5fd5495b37f4d785b0935341b
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
} catch (Exception e) {
System.out.println(e);
logger.error(MessageEnum.GENERAL_EXCEPTION, " getMsbIp catch exception: ", "", this.getTaskName(), MsoLogger.ErrorCode.UnknownError, e.getClass().toString());
} catch (Exception e) {
System.out.println(e);
logger.error(MessageEnum.GENERAL_EXCEPTION, " getMsbIp catch exception: ", "", this.getTaskName(), MsoLogger.ErrorCode.UnknownError, e.getClass().toString());
- } finally {
- return defaultValue;
}
private Integer getInteger(DelegateExecution execution, String name, Integer defaultValue) {
Integer vlaue = (Integer) execution.getVariable(name);
try {
}
private Integer getInteger(DelegateExecution execution, String name, Integer defaultValue) {
Integer vlaue = (Integer) execution.getVariable(name);
try {
- if (vlaue != null && vlaue instanceof Integer) {
return vlaue;
}
} catch (Exception e) {
System.out.println(e);
logger.error(MessageEnum.GENERAL_EXCEPTION, " getMsbIp catch exception: ", "", this.getTaskName(), MsoLogger.ErrorCode.UnknownError, e.getClass().toString());
return vlaue;
}
} catch (Exception e) {
System.out.println(e);
logger.error(MessageEnum.GENERAL_EXCEPTION, " getMsbIp catch exception: ", "", this.getTaskName(), MsoLogger.ErrorCode.UnknownError, e.getClass().toString());
- } finally {
- return defaultValue;
}
public String getProcessKey(DelegateExecution execution) {
}
public String getProcessKey(DelegateExecution execution) {