Same for apex
This commit is contained in:
@ -29,6 +29,10 @@ This is a {{ site.pmd.release_type }} release.
|
|||||||
* pmd-java
|
* pmd-java
|
||||||
* {% jdoc java::lang.java.ast.CanSuppressWarnings %} and its implementations
|
* {% jdoc java::lang.java.ast.CanSuppressWarnings %} and its implementations
|
||||||
* {% jdoc java::lang.java.rule.AbstractJavaRule#isSuppressed(Node) %}
|
* {% 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
|
### External Contributions
|
||||||
|
@ -6,6 +6,11 @@ package net.sourceforge.pmd.lang.apex.ast;
|
|||||||
|
|
||||||
import net.sourceforge.pmd.Rule;
|
import net.sourceforge.pmd.Rule;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This interface will be removed, the AST should not know about rules.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface CanSuppressWarnings {
|
public interface CanSuppressWarnings {
|
||||||
|
@Deprecated
|
||||||
boolean hasSuppressWarningsAnnotationFor(Rule rule);
|
boolean hasSuppressWarningsAnnotationFor(Rule rule);
|
||||||
}
|
}
|
||||||
|
@ -45,8 +45,9 @@ public class ApexRuleViolation<T> extends ParametricRuleViolation<Node> {
|
|||||||
* Check for suppression on this node, on parents, and on contained types
|
* Check for suppression on this node, on parents, and on contained types
|
||||||
* for ASTCompilationUnit
|
* 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) {
|
public static boolean isSupressed(Node node, Rule rule) {
|
||||||
boolean result = suppresses(node, rule);
|
boolean result = suppresses(node, rule);
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ public class JavaRuleViolation extends ParametricRuleViolation<JavaNode> {
|
|||||||
*
|
*
|
||||||
* @param node
|
* @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
|
@Deprecated
|
||||||
public static boolean isSupressed(Node node, Rule rule) {
|
public static boolean isSupressed(Node node, Rule rule) {
|
||||||
|
Reference in New Issue
Block a user