mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
Bug 5239: Using read lock where only reading from the preferences
collections
This commit is contained in:
1 parent
9ffcb815bd
commit
e7f3a11cae
1 file changed
+1
-1
+1
-1
@@ -1307,7 +1307,7 @@ public class UserStoreImpl implements UserStore {
|
||||
|
||||
@Override
|
||||
public <T> T getPreferenceObject(String username, String key) {
|
||||
return LockUtil.executeWithWriteLockAndResult(preferenceLock, () -> {
|
||||
return LockUtil.executeWithReadLockAndResult(preferenceLock, () -> {
|
||||
final Object result;
|
||||
Map<String, Object> userMap = preferenceObjects.get(username);
|
||||
if (userMap != null) {
|
||||
|
||||
Reference in new issue
Block a user