From 7d0b3edff85f9ec857695c513eb2d47fcf147d40 Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Sun, 23 Aug 2015 22:44:20 +0200 Subject: [PATCH] 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. --- .../java/com/puppycrawl/tools/checkstyle/DebugChecker.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/DebugChecker.java b/src/test/java/com/puppycrawl/tools/checkstyle/DebugChecker.java index 5b0fe31aa..f12eda489 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/DebugChecker.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/DebugChecker.java @@ -6,9 +6,6 @@ package com.puppycrawl.tools.checkstyle; class DebugChecker extends Checker { - DebugChecker() { - } - @Override public void fireAuditFinished() { super.fireAuditFinished();