[scala] Remove deprecated classes/methods

This commit is contained in:
Andreas Dangel
2024-02-01 18:43:05 +01:00
parent c49a44fb32
commit 3ca4d96eef
3 changed files with 6 additions and 29 deletions

View File

@ -75,12 +75,6 @@ abstract class AbstractScalaNode<T extends Tree> extends AbstractNode<AbstractSc
return ScalaNode.super.compareLocation(node);
}
@Override
@Deprecated
public T getNode() {
return node;
}
@Override
public String getXPathNodeName() {
return node.productPrefix().replace(".", "");

View File

@ -4,7 +4,6 @@
package net.sourceforge.pmd.lang.scala.ast;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.impl.GenericNode;
import scala.meta.Tree;
@ -17,28 +16,6 @@ import scala.meta.Tree;
* The Scala node type that extends Scala's Tree trait
*/
public interface ScalaNode<T extends Tree> extends GenericNode<ScalaNode<?>> {
/**
* Accept a visitor and traverse this node.
*
* @deprecated Use {@link #acceptVisitor(AstVisitor, Object)}
*/
@Deprecated
default <D, R> R accept(ScalaParserVisitor<D, R> visitor, D data) {
return acceptVisitor(visitor, data);
}
/**
* Get the underlying Scala Node.
*
* @return the Scala Node for this node
* @deprecated The underlying scala node should not be used directly.
*/
@Deprecated
T getNode();
/**
* Returns true if the node is implicit. If this node has no non-implicit
* descendant, then its text bounds identify an empty region of the source