ER-106 If you have to compare with a string do not use degree.equals("1")) but "1".equals(degree)

Severity2
Enabledyes
Waivable
Violation
public boolean compare(final String strToCompare) {
	return strToCompare.equals(COMPARE_SRT);
}
Fix
public boolean compare(final String strToCompare) {
	return COMPARE_SRT.equals(strToCompare);
}


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