Changeset 7487


Ignore:
Timestamp:
01/06/11 10:56:48 (9 years ago)
Author:
melissa
Message:

Use a ConcurrentHashMap instead of a HashMap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/Location.java

    r7486 r7487  
    3232import java.util.ArrayList; 
    3333import java.util.HashMap; 
     34import java.util.concurrent.ConcurrentHashMap; 
    3435 
    3536import org.slf4j.Logger; 
     
    7172    } 
    7273  } 
    73   private static HashMap<String, ListingsResult> fileListings = 
    74     new HashMap<String, ListingsResult>(); 
     74  private static ConcurrentHashMap<String, ListingsResult> fileListings = 
     75    new ConcurrentHashMap<String, ListingsResult>(); 
    7576 
    7677  // -- Fields -- 
     
    146147   */ 
    147148  public static void clearDirectoryListingsCache() { 
    148     fileListings = new HashMap<String, ListingsResult>(); 
     149    fileListings = new ConcurrentHashMap<String, ListingsResult>(); 
    149150  } 
    150151 
Note: See TracChangeset for help on using the changeset viewer.