File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
core/framework/src/main/java/org/phoebus/framework/preferences Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 77 *******************************************************************************/
88package org .phoebus .framework .preferences ;
99
10- import java .util .concurrent .ConcurrentHashMap ;
10+ import java .util .HashMap ;
11+ import java .util .Map ;
1112import java .util .prefs .AbstractPreferences ;
1213import java .util .prefs .BackingStoreException ;
1314import java .util .prefs .Preferences ;
@@ -21,8 +22,12 @@ class InMemoryPreferences extends AbstractPreferences
2122 private static final InMemoryPreferences prefs = new InMemoryPreferences (null , "" );
2223
2324 /** Settings for this node in the preferences hierarchy */
24- private ConcurrentHashMap <String , String > cache = new ConcurrentHashMap <>();
25+ private Map <String , String > cache = new HashMap <>();
2526
27+ // Javadoc for all ..Spi calls includes
28+ // "This method is invoked with the lock on this node held."
29+ // so no need for ConcurrentHashMap or our own locking
30+
2631 /** @return User preferences */
2732 public static Preferences getUserRoot ()
2833 {
You can’t perform that action at this time.
0 commit comments