ER-019 Avoid 'return' in finally block - meaning of this is not always obvious to the maintainer

Severity1
Enabledyes
Waivable
Violation
finally {
	try {
		r.close();
	} catch (IOException e) {
		logger.error(FILE_ERROR_TXT, e);
		throw new HammurapiTestCasesException(e);
	}
	return 0;
}
Fix
finally {
	try {
		r.close();
	} catch (IOException e) {
		logger.error(FILE_ERROR_TXT, e);
		throw new HammurapiTestCasesException(e);
	}
}


Hammurapi 3 Copyright © 2004 Hammurapi Group. All Rights Reserved.