ER-110 Unnecessary constructor detects when a constructor is not necessary; i.e., when there's only one constructor, it's public, has an empty body, and takes no arguments.

Severity3
Enabledyes
Waivable
Violation
	public UnnecessaryConstructorRuleViolationTestCase() {
	super();
}
Fix
private int amount = 0;
public UnnecessaryConstructorRuleFixTestCase(final int newAmount) {
	super();
	amount = newAmount;
}


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