public class SuppressionFilter extends AutomaticBean implements Filter
This filter accepts AuditEvents according to file, check, line, and column, as specified in a suppression file.
Constructor and Description |
---|
SuppressionFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
boolean |
equals(Object object) |
int |
hashCode() |
void |
setFile(String fileName)
Loads the suppressions for a file.
|
String |
toString() |
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public SuppressionFilter()
public void setFile(String fileName) throws CheckstyleException
fileName
- name of the suppressions file.CheckstyleException
- if there is an error.public boolean accept(AuditEvent event)
Copyright © 2001–2015. All rights reserved.