Merge branch 'master' into pmd/7.0.x

This commit is contained in:
Andreas Dangel
2019-07-28 18:56:13 +02:00
2 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,13 @@ This is a {{ site.pmd.release_type }} release.
### API Changes
#### Deprecated APIs
##### For removal
* The method {% jdoc java::ast.ASTImportDeclaration#getPackage() %} has been deprecated and
will be removed with PMD 7.0.0.
### External Contributions
{% endtocmaker %}

View File

@ -158,9 +158,10 @@ public class ASTImportDeclaration extends AbstractJavaTypeNode {
* type or method imported by this declaration. This may be null if the
* auxclasspath is not correctly set, as this method depends on correct
* type resolution.
*
* @deprecated this will be removed with PMD 7.0.0
*/
// TODO deprecate? This is only used in a test. I don't think it's really
// useful and it gives work to ClassTypeResolver.
@Deprecated
public Package getPackage() {
return this.pkg;
}