forked from phoedos/pmd
Same for apex
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user