Frameworks: Annotate trivial @GuardedBy in services/core

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)$").

Changelist for statsd.

Derived by errorprone.

Bug: 73000847
Test: m
Change-Id: I02981b3f65102640609c8ca85c765250b0e2e3ad
This commit is contained in:
Andreas Gampe
2018-07-20 12:55:37 -07:00
committed by Xin Li
parent 89ee44a837
commit 2952021e17

View File

@@ -1179,6 +1179,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
}
}
@GuardedBy("StatsCompanionService.sStatsdLock")
private void forgetEverythingLocked() {
sStatsd = null;
mContext.unregisterReceiver(mAppUpdateReceiver);