[jsp] Remove deprecated classes/methods

This commit is contained in:
Andreas Dangel 2024-02-01 17:48:49 +01:00
parent c22448eae6
commit 463fd2d318
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
4 changed files with 6 additions and 62 deletions

View File

@ -189,6 +189,12 @@ The following previously deprecated classes have been removed:
If the current version is needed, then `Node.getTextDocument().getLanguageVersion()` can be used. This
is the version that has been selected via CLI `--use-version` parameter.
* pmd-jsp
* `net.sourceforge.pmd.lang.jsp.ast.JspParserVisitor`
Use {%jdoc jsp::lang.jsp.ast.JspVisitor %} instead.
* `net.sourceforge.pmd.lang.jsp.ast.JspParserVisitorAdapter`
* {%jdoc !!jsp::lang.jsp.ast.JspNode %} - method `jjtAccept()` has been removed.
Use {%jdoc core::lang.ast.Node#acceptVisitor(core::lang.ast.AstVisitor,P) %} instead.
**Removed classes, interfaces and methods (not previously deprecated)**

View File

@ -4,19 +4,7 @@
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode;
public interface JspNode extends JjtreeNode<JspNode> {
/**
* @deprecated Use {@link #acceptVisitor(AstVisitor, Object)}
*/
@Deprecated
@DeprecatedUntil700
default Object jjtAccept(JspParserVisitor visitor, Object data) {
return acceptVisitor(visitor, data);
}
}

View File

@ -1,24 +0,0 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.Node;
/**
* Backwards-compatibility only.
*
* @deprecated Use {@link JspVisitor}
*/
@Deprecated
@DeprecatedUntil700
public interface JspParserVisitor extends JspVisitor<Object, Object> {
@Override
default Object visitNode(Node node, Object param) {
node.children().forEach(c -> c.acceptVisitor(this, param));
return param;
}
}

View File

@ -1,26 +0,0 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.Node;
/**
* Backwards-compatibility only.
*
* @deprecated Use {@link JspVisitorBase}
*/
@Deprecated
@DeprecatedUntil700
public class JspParserVisitorAdapter extends JspVisitorBase<Object, Object> implements JspParserVisitor {
@Override
protected Object visitChildren(Node node, Object data) {
super.visitChildren(node, data);
return data;
}
}