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

Commit 2952021e authored by Andreas Gampe's avatar Andreas Gampe Committed by Xin Li
Browse files

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
parent 89ee44a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1179,6 +1179,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        }
        }
    }
    }


    @GuardedBy("StatsCompanionService.sStatsdLock")
    private void forgetEverythingLocked() {
    private void forgetEverythingLocked() {
        sStatsd = null;
        sStatsd = null;
        mContext.unregisterReceiver(mAppUpdateReceiver);
        mContext.unregisterReceiver(mAppUpdateReceiver);