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

Commit 0f714a30 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Validate ancestor class for @EnforcePermission

The lint was previously ensuring that any descendant class (or method)
would have the same annotation as the parent. However, it did not verify
that each parent was also annotated. This can occur if a developer
annotates the Java implementation but not the AIDL definition. Add a
verification that if a class or method is annotated, so is its ancestor.

Test: atest --host com.google.android.lint.EnforcePermissionDetectorTest
Bug: 220214993
Change-Id: Ie67fb2f47460da8600865b5ac24bb293dbd4cc6e
parent 651aa5a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment