diff options
| author | 2024-06-08 12:07:47 +0100 | |
|---|---|---|
| committer | 2024-06-10 19:15:44 +0100 | |
| commit | 083f9ad5d6ba48ec2f990aad68ca5cff0cb9b06c (patch) | |
| tree | 78c93a4cf82dc600ebaada09f7f202a24b3b5803 /api/coverage/tools | |
| parent | 6c865749f6e92e52ea7dd3c0748e34c029fd8100 (diff) | |
Fix some discrepancies in @Deprecated handling in Metalava
Previously, Metalava had some inconsistencies in the handling of
deprecated status which lead to some inconsistencies in the API
signature files. This change fixes those signatures.
* `onGetLayoutInflater` was removed because the code to determine
whether a method is elided from the signature files because it
matches an overridden method will only elide a method if it has the
same deprecated status as the overridden method. However, in some
cases it would not take into account that the method, while not
explicitly deprecated was a member of a deprecated class. That meant
that `onGetLayoutInflater` was kept in the API signature file when it
should not have been. That issue is fixed in this topic and so this
change removes it.
* `setPackagesSuspended` had an `@Deprecated` annotation added to it
because while the API signature writing was supposed to add an
`@Deprecated` annotation for a method that was explicitly deprecated
or a member of a deprecated class in some cases the latter was
ignored. That issue is fixed in this topic and so this change adds
the previously missing `@Deprecated` annotation.
Bug: 315206833
Test: m checkapi
Change-Id: I0ef23d32c5b5b11f964aeb93c2bb0346d75cea83
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions