forked from phoedos/pmd
[jsp] Remove deprecated classes/methods
This commit is contained in:
parent
c22448eae6
commit
463fd2d318
@ -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)**
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user