File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/plugins/pluginContext/src/android Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1212import java .util .Map ;
1313import java .util .HashMap ;
1414import java .util .HashSet ;
15+ import java .util .Set ;
16+ import java .util .concurrent .ConcurrentHashMap ;
1517
1618public class Tee extends CordovaPlugin {
1719
1820 // pluginId : token
19- private /*static*/ final Map <String , String > tokenStore = new HashMap <>();
21+ private /*static*/ final Map <String , String > tokenStore = new ConcurrentHashMap <>();
2022
2123 //assigned tokens
22- private /*static*/ final HashSet <String > disclosed = new HashSet <> ();
24+ private /*static*/ final Set <String > disclosed = ConcurrentHashMap . newKeySet ();
2325
2426 // token : list of permissions
25- private /*static*/ final Map <String , List <String >> permissionStore = new HashMap <>();
27+ private /*static*/ final Map <String , List <String >> permissionStore = new ConcurrentHashMap <>();
2628
2729 @ Override
2830 public boolean execute (String action , JSONArray args , CallbackContext callback )
You can’t perform that action at this time.
0 commit comments