[core] Remove XPathRule#XPATH_DESCRIPTOR
This commit is contained in:
@ -215,6 +215,8 @@ The following previously deprecated rules have been finally removed:
|
|||||||
* {%jdoc !!core::lang.rule.RuleReference %} - the following methods have been removed:
|
* {%jdoc !!core::lang.rule.RuleReference %} - the following methods have been removed:
|
||||||
* `setRuleSetReference(RuleSetReference)` - without replacement. Just construct new {%jdoc core::lang.rule.RuleReference %} instead.
|
* `setRuleSetReference(RuleSetReference)` - without replacement. Just construct new {%jdoc core::lang.rule.RuleReference %} instead.
|
||||||
* `hasOverriddenProperty(PropertyDescriptor)` - use {%jdoc core::lang.rule.RuleReference#isPropertyOverridden(core::properties.PropertyDescriptor) %} instead.
|
* `hasOverriddenProperty(PropertyDescriptor)` - use {%jdoc core::lang.rule.RuleReference#isPropertyOverridden(core::properties.PropertyDescriptor) %} instead.
|
||||||
|
* {%jdoc !!core::lang.rule.XPathRule %}
|
||||||
|
* The constant `XPATH_DESCRIPTOR` has been made private and is not accessible anymore.
|
||||||
* pmd-apex
|
* pmd-apex
|
||||||
* {%jdoc apex::lang.apex.ast.ApexNode %} and {% jdoc apex::lang.apex.ast.ASTApexFile %}
|
* {%jdoc apex::lang.apex.ast.ApexNode %} and {% jdoc apex::lang.apex.ast.ASTApexFile %}
|
||||||
* `#getApexVersion()`: In PMD 6, this method has been deprecated but was defined in the class `ApexRootNode`.
|
* `#getApexVersion()`: In PMD 6, this method has been deprecated but was defined in the class `ApexRootNode`.
|
||||||
|
@ -38,11 +38,7 @@ public final class XPathRule extends AbstractRule {
|
|||||||
|
|
||||||
// TODO move to XPath subpackage
|
// TODO move to XPath subpackage
|
||||||
|
|
||||||
/**
|
private static final PropertyDescriptor<String> XPATH_DESCRIPTOR =
|
||||||
* @deprecated Use {@link #XPathRule(XPathVersion, String)}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public static final PropertyDescriptor<String> XPATH_DESCRIPTOR =
|
|
||||||
PropertyFactory.stringProperty("xpath")
|
PropertyFactory.stringProperty("xpath")
|
||||||
.desc("XPath expression")
|
.desc("XPath expression")
|
||||||
.defaultValue("")
|
.defaultValue("")
|
||||||
|
@ -436,7 +436,7 @@ public class RuleDocGenerator {
|
|||||||
// filter out standard properties
|
// filter out standard properties
|
||||||
properties.remove(Rule.VIOLATION_SUPPRESS_REGEX_DESCRIPTOR);
|
properties.remove(Rule.VIOLATION_SUPPRESS_REGEX_DESCRIPTOR);
|
||||||
properties.remove(Rule.VIOLATION_SUPPRESS_XPATH_DESCRIPTOR);
|
properties.remove(Rule.VIOLATION_SUPPRESS_XPATH_DESCRIPTOR);
|
||||||
properties.remove(XPathRule.XPATH_DESCRIPTOR);
|
properties.removeIf(p -> "xpath".equals(p.name())); // this is XPathRule.XPATH_DESCRIPTOR
|
||||||
properties.remove(XPathRule.VERSION_DESCRIPTOR);
|
properties.remove(XPathRule.VERSION_DESCRIPTOR);
|
||||||
|
|
||||||
if (!properties.isEmpty()) {
|
if (!properties.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user