Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 083f9ad5 authored by Paul Duffin's avatar Paul Duffin
Browse files

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
parent 6c865749
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment