Skip to content
Commit 3fc484ce authored by mattgilbride's avatar mattgilbride
Browse files

Fix EnforcePermission lint false positive on generated interfaces

EnforcePermissionDetector and EnforcePermissionHelperDetector were
scanning all methods annotated with @EnforcePermission, which
included the method declaration on the (generated) interface itself,
as well as the methods of the (generated) Default and Proxy classes.

Update EnforcePermissionHelperDetector to ignore all abstract methods
(e.g. those defined in the generated interface declaration).

Update EnforcePermissionDetector to specifically target, and ignore,
methods of the generated Default and Proxy classes.

Bug: 236558918
Test: EnforcePermissionHelperDetectorCodegenTest,
EnforcePermissionDetectorCodegenTest

Change-Id: I12cb46cb771e65600a9daf3efce199fd9311a53b
parent eae34494
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