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
1 file changed