ER-014 For statement requires condition clause (2nd argument)"

Severity2
Enabledyes
Waivable
Violation
for (Object obj = iter.next(); ; obj = iter.next()) {
	if (obj.equals(anObj)) {
		throw new HammurapiTestCasesException(obj.toString());
}}  
Fix
for (Object obj = iter.next(); iter.hasNext(); obj = iter.next()) {
	if (obj.equals(anObj)) {
		throw new HammurapiTestCasesException(obj.toString());
	}
}


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