Changeset 6036


Ignore:
Timestamp:
02/24/15 10:21:52 (9 years ago)
Author:
Twan Goosen
Message:

Further replacement of HashMap? with ConcurrentHashMap? in the language code utils, as it will may be accessed concurrently via the web app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/LanguageCodeUtils.java

    r6034 r6036  
    146146        LOG.debug("Creating language code map.");
    147147        try {
    148             Map<String, String> result = CommonUtils.createCMDIComponentItemMap(url);
     148            Map<String, String> result = new ConcurrentHashMap<String, String>(CommonUtils.createCMDIComponentItemMap(url));
    149149            return result;
    150150        } catch (Exception e) {
     
    156156        LOG.debug("Creating language code map.");
    157157        try {
    158             Map<String, String> result = CommonUtils.createReverseCMDIComponentItemMap(url);
     158            Map<String, String> result = new ConcurrentHashMap<String, String>(CommonUtils.createReverseCMDIComponentItemMap(url));
    159159            return result;
    160160        } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.