Remove redundant no-arg constructor. #1555
Fixes `UnnecessaryConstructor` inspection violations. Description: >Reports unnecessary constructors. A constructor is unnecessary if it is the only constructor of a class, has no parameters, has the same access modifiers as its containing class, and does not perform any initialization except explicitly or implicitly calling the super class constructor without arguments. Such a constructor can be safely removed as it will be generated by the compiler even if not specified.
This commit is contained in:
parent
bee8aab67c
commit
7d0b3edff8
|
|
@ -6,9 +6,6 @@
|
|||
package com.puppycrawl.tools.checkstyle;
|
||||
|
||||
class DebugChecker extends Checker {
|
||||
DebugChecker() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fireAuditFinished() {
|
||||
super.fireAuditFinished();
|
||||
|
|
|
|||
Loading…
Reference in New Issue