diff options
| author | 2023-12-10 13:58:03 +0000 | |
|---|---|---|
| committer | 2023-12-12 20:22:39 +0000 | |
| commit | 47eda28854b73d1304a79e027304e81373faef87 (patch) | |
| tree | 38eb5de3a2808306b6c9dc9b3a2413cce7d96400 /libs/androidfw/StringPool.cpp | |
| parent | a6b3933ad318eb8133e31d4ae0ac3d8147c4d2ad (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions