{{theTime}}

Search This Blog

Total Pageviews

How to synchronize TreeMap?

TreeMap implementation is not synchronized.   If multiple threads access TreeMap and atleast one thread updates the TreeMap, it must be synchronized externally.  If no external synchronization, use 

 SortedMap m = Collections.synchronizedSortedMap(new TreeMap(...));

No comments:

Could not find method signingConfigs() for arguments

Could not find method signingConfigs() for arguments [build_5dw7nwfc8ibd8sagvx4p79x1u$_run_closure5@13e86039] on root project 'android&#...