Fix java test

This commit is contained in:
Clément Fournier
2022-02-06 16:10:12 +01:00
parent 1dd516665b
commit 3f5ec00a6b

View File

@ -19,6 +19,12 @@ import net.sourceforge.pmd.testframework.RuleTst;
public class SuppressWarningsTest extends RuleTst {
private static class BarRule extends AbstractJavaRule {
@Override
public String getMessage() {
return "a message";
}
@Override
public Object visit(ASTCompilationUnit cu, Object ctx) {
// Convoluted rule to make sure the violation is reported for the