Deprecate ASTTypeParameter#getParameterName
This commit is contained in:
@ -6,6 +6,7 @@ package net.sourceforge.pmd.lang.java.ast;
|
|||||||
|
|
||||||
|
|
||||||
import net.sourceforge.pmd.annotation.InternalApi;
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
|
import net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a type parameter declaration of a method, constructor, class or interface declaration.
|
* Represents a type parameter declaration of a method, constructor, class or interface declaration.
|
||||||
@ -37,11 +38,22 @@ public class ASTTypeParameter extends AbstractJavaTypeNode {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the type variable introduced by this declaration.
|
* Returns the name of the type variable introduced by this declaration.
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link #getName()}
|
||||||
*/
|
*/
|
||||||
|
@DeprecatedAttribute(replaceWith = "@Name")
|
||||||
|
@Deprecated
|
||||||
public String getParameterName() {
|
public String getParameterName() {
|
||||||
return getImage();
|
return getImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the name of the type variable introduced by this declaration.
|
||||||
|
*/
|
||||||
|
public String getName() {
|
||||||
|
return getImage();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this type parameter is bounded,
|
* Returns true if this type parameter is bounded,
|
||||||
|
Reference in New Issue
Block a user