Ignore the missing private constructor checks for examples

.. because there's no point of having an empty private constructor for
the example classes with the main(String[]) methods.
This commit is contained in:
Trustin Lee 2014-05-22 17:20:13 +09:00
parent e3e0b2acba
commit 191ae3872f

View File

@ -15,12 +15,12 @@
*/
package io.netty.build.checkstyle;
import java.util.regex.Pattern;
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
import com.puppycrawl.tools.checkstyle.api.AutomaticBean;
import com.puppycrawl.tools.checkstyle.api.Filter;
import java.util.regex.Pattern;
public class SuppressionFilter extends AutomaticBean implements Filter {
private static final Pattern JAVA5PATTERN = Pattern.compile("/org/jboss/");
@ -52,6 +52,9 @@ public class SuppressionFilter extends AutomaticBean implements Filter {
if (evt.getSourceName().endsWith(".JavadocPackageCheck")) {
return false;
}
if (evt.getSourceName().endsWith(".HideUtilityClassConstructorCheck")) {
return false;
}
}
return true;
}