Same for apex

This commit is contained in:
Clément Fournier
2019-09-25 01:11:21 +02:00
parent bcb7774795
commit 54b7679329
4 changed files with 14 additions and 4 deletions

View File

@ -29,6 +29,10 @@ This is a {{ site.pmd.release_type }} release.
* pmd-java
* {% jdoc java::lang.java.ast.CanSuppressWarnings %} and its implementations
* {% jdoc java::lang.java.rule.AbstractJavaRule#isSuppressed(Node) %}
* {% jdoc java::lang.java.rule.JavaRuleViolation#isSupressed(Node,Rule) %}
* pmd-apex
* {% jdoc java::lang.apex.ast.CanSuppressWarnings %} and its implementations
* {% jdoc java::lang.apex.rule.ApexRuleViolation#isSupressed(Node,Rule) %}
### External Contributions

View File

@ -6,6 +6,11 @@ package net.sourceforge.pmd.lang.apex.ast;
import net.sourceforge.pmd.Rule;
/**
* @deprecated This interface will be removed, the AST should not know about rules.
*/
@Deprecated
public interface CanSuppressWarnings {
@Deprecated
boolean hasSuppressWarningsAnnotationFor(Rule rule);
}

View File

@ -44,9 +44,10 @@ public class ApexRuleViolation<T> extends ParametricRuleViolation<Node> {
/**
* Check for suppression on this node, on parents, and on contained types
* for ASTCompilationUnit
*
* @param node
*
* @deprecated Is internal API, not useful, there's a typo. See <a href="https://github.com/pmd/pmd/pull/1927">#1927</a>
*/
@Deprecated
public static boolean isSupressed(Node node, Rule rule) {
boolean result = suppresses(node, rule);
@ -57,7 +58,7 @@ public class ApexRuleViolation<T> extends ParametricRuleViolation<Node> {
parent = parent.jjtGetParent();
}
}
return result;
}

View File

@ -78,7 +78,7 @@ public class JavaRuleViolation extends ParametricRuleViolation<JavaNode> {
*
* @param node
*
* @deprecated Is internal API, not useful, there's a typo in there. See <a href="https://github.com/pmd/pmd/pull/1927">#1927</a>
* @deprecated Is internal API, not useful, there's a typo. See <a href="https://github.com/pmd/pmd/pull/1927">#1927</a>
*/
@Deprecated
public static boolean isSupressed(Node node, Rule rule) {