public class FilterWarningHandler extends Object implements WarningHandler
StringPatterns.| Constructor and Description |
|---|
FilterWarningHandler(StringPattern[] handlePatterns,
WarningHandler delegate)
Popular values for the
handlePatterns parameter are
StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE. |
| Modifier and Type | Method and Description |
|---|---|
void |
handleWarning(String handle,
String message,
Location optionalLocation)
May or may not choose to throw a
CompileException. |
public FilterWarningHandler(StringPattern[] handlePatterns, WarningHandler delegate)
handlePatterns parameter are
StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE.public void handleWarning(@Nullable
String handle,
String message,
@Nullable
Location optionalLocation)
throws CompileException
WarningHandlerCompileException.handleWarning in interface WarningHandlerhandle - A string describing the category of the warning; used for filtering iff non-nullCompileException - This WarningHandler wishes to terminate compilation, e.g. because "too many"
warnings have been reported