Frameworks: Annotate trivial @GuardedBy in packages

Add @GuardedBy for simple functions that require locks and have a name in
one of the frameworks naming styles for locks ("^.*(Locked|LPw|LPr|L[a-zA-Z]|UL|AL|NL)$").

Derived by errorprone.

Bug: 73000847
Test: m
Change-Id: Id14322b0a6206152cd2933c968e0a6f470fcee09
This commit is contained in:
Andreas Gampe
2018-09-05 16:52:31 -07:00
parent 22f9af73db
commit b58893078b
4 changed files with 24 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ public class ExternalStorageProvider extends FileSystemProvider {
}
}
@GuardedBy("mRootsLock")
private void updateVolumesLocked() {
mRoots.clear();