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

Commit 6e00c464 authored by Andrew Scull's avatar Andrew Scull
Browse files

TrustManagerService.java: fix SynchronizeOnNonFinalField warning

Synchronizing on non-final fields is not safe: if the field is ever
updated, different threads may end up locking on different objects.

Test: Build
Change-Id: I3ad24e79c762bd8378c6765e68ae48e9eb86147d
parent 74fa79e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ public class TrustManagerService extends SystemService {

    // set to true only if user can skip bouncer
    @GuardedBy("mUsersUnlockedByFingerprint")
    private SparseBooleanArray mUsersUnlockedByFingerprint = new SparseBooleanArray();
    private final SparseBooleanArray mUsersUnlockedByFingerprint = new SparseBooleanArray();

    private final StrongAuthTracker mStrongAuthTracker;