ER-025 Parenthesis are redundant

Severity3
Enabledyes
Waivable
RationaleParenthesis should be used to override precedence rules. Unnecessary parenthesis may confuse maintainer.
Violation
if ((i >= UPPER_BOUND && obj != null)) {
	billItems.setElementAt(obj, i);
}
Fix
if (i >= UPPER_BOUND && obj != null) {
	billItems.setElementAt(obj, i);
}


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