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

Skip to content
Commit 47eda288 authored by Paul Duffin's avatar Paul Duffin
Browse files

Remove unnecessary @Deprecated on parameter of deprecated method

Due to a bug in Metalava `@Deprecated` annotations on parameters were
ignored, both for suppressing issues and also in output files like API
signature files and stub source files. However, deprecating a method
did have the effect of deprecating the parameter, which means that the
`@Deprecated` annotation is unnecessary on a deprecated method.

The bug in Metalava has been fixed but the presence of the
`@Deprecated` annotation on the `DevicePolicyManager`'s
`setActiveProfileOwner` method's `ownerName` parameter means that the
Metalava fix causes a change in the API signature file. Rather than
change the API signature file to add information that is useless, or
complicate Metalava with special cases this change removes the
unnecessary `@Deprecated` annotation from the parameter.

Bug: 315206833
Bug: 315994914
Test: ./gradlew
(cherry picked from https://android-review.googlesource.com/q/commit:0d7eebc9f1cf1baac89c68a76ece539572d73b3b)
Merged-In: I4a9b41ac1a80d1c3461a571761a826cd096ef551
Change-Id: I4a9b41ac1a80d1c3461a571761a826cd096ef551
parent a6b3933a
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