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

Skip to content
Commit cdabba09 authored by William Escande's avatar William Escande
Browse files

ErrorProne: DatabaseManager

```
84: warning: The field 'LEGACY_BTSNOOP_DEFAULT_MODE' is never read.
            LEGACY_BTSNOOP_DEFAULT_MODE = "bluetooth_btsnoop_default_mode";
            ^
127|144|151|157: warning: Synchronizing on non-final fields is not safe:
if the field is ever updated, different threads may end up locking on different objects.
                    synchronized (mDatabase) {
                                 ^
555: warning: Write to static variable should not be guarded by instance lock 'mMetadataCache'
            metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber++;
                                                        ^
1076: warning: The type `Map.Entry` was referred to by the non-canonical
name `HashMap.Entry`. This may be misleading.
        for (HashMap.Entry<String, Metadata> entry : mMetadataCache.entrySet()) {
                    ^
```
Bug: 236759221
Test: m RUN_ERROR_PRONE=true Bluetooth
Merged-In: I848452e9b1c03b08ee55c35ff286a3080b32ee73
Change-Id: I848452e9b1c03b08ee55c35ff286a3080b32ee73
parent af190f9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment