ER-200 Instance variables and the declaring type shouldn't have same name

Severity3
Enabledyes
Waivable
Violation
public class VariableNameClashesWithTypeNameRuleViolationTestCase {
	private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getRootLogger();
	private int VariableNameClashesWithTypeNameInspectorViolationTestCase;
}
Fix
public class VariableNameClashesWithTypeNameRuleFixTestCase {
	private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getRootLogger();
	private int theVariableNameClashesWithTypeNameInspectorFixTestCase;
}


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