[java] Deprecate base class ExcessiveLengthRule

This commit is contained in:
Andreas Dangel
2022-12-09 20:32:58 +01:00
parent 330594d51d
commit e8510fa7da
2 changed files with 11 additions and 0 deletions

View File

@@ -27,6 +27,15 @@ This is a {{ site.pmd.release_type }} release.
### API Changes
#### Deprecated APIs
##### Internal API
Those APIs are not intended to be used by clients, and will be hidden or removed with PMD 7.0.0. You can identify
them with the `@InternalApi` annotation. You'll also get a deprecation warning.
* {% jdoc java::lang.java.rule.design.ExcessiveLengthRule %} (Java)
### External Contributions
{% endtocmaker %}

View File

@@ -4,6 +4,7 @@
package net.sourceforge.pmd.lang.java.rule.design;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.java.ast.JavaNode;
import net.sourceforge.pmd.lang.java.rule.AbstractStatisticalJavaRule;
import net.sourceforge.pmd.stat.DataPoint;
@@ -19,6 +20,7 @@ import net.sourceforge.pmd.stat.DataPoint;
* @deprecated This base class is not needed anymore and will be removed with PMD 7.
*/
@Deprecated
@InternalApi
public class ExcessiveLengthRule extends AbstractStatisticalJavaRule {
private Class<?> nodeClass;