ER-110Unnecessary 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.
Severity
3
Enabled
yes
Waivable
Violation
public UnnecessaryConstructorRuleViolationTestCase() {
super();
}
Fix
private int amount = 0;
public UnnecessaryConstructorRuleFixTestCase(final int newAmount) {
super();
amount = newAmount;
}