[doc] Update release notes (#4280)

This commit is contained in:
Andreas Dangel
2023-01-14 10:55:30 +01:00
parent 0715bd91d5
commit 8985c9dbf3
2 changed files with 13 additions and 0 deletions

View File

@@ -18,7 +18,17 @@ This is a {{ site.pmd.release_type }} release.
### API Changes
#### Deprecated APIs
##### For removal
* {% jdoc !!apex::lang.apex.ast.ApexRootNode#getApexVersion() %} has been deprecated for removal. The version returned is
always `Version.CURRENT`, as the apex compiler integration doesn't use additional information which Apex version
actually is used. Therefore, this method can't be used to determine the Apex version of the project
that is being analyzed.
### External Contributions
* [#4280](https://github.com/pmd/pmd/pull/4280): \[apex] Deprecate ApexRootNode.getApexVersion - [Aaron Hurst](https://github.com/aaronhurst-google) (@aaronhurst-google)
{% endtocmaker %}

View File

@@ -46,6 +46,9 @@ public abstract class ApexRootNode<T extends Compilation> extends AbstractApexNo
* Use {@link Version} to compare, e.g.
* {@code node.getApexVersion() >= Version.V176.getExternal()}
* @return the apex version
* @deprecated for removal. The version returned is always Version.CURRENT, as the apex compiler integration
* doesn't use additional information which Apex version actually is used. Therefore, this method can't be
* used to determine the Apex version of the project that is being analyzed.
*/
@Deprecated
public double getApexVersion() {