Changeset 7522


Ignore:
Timestamp:
01/12/11 20:05:18 (9 years ago)
Author:
melissa
Message:

Make primitive type static variables volatile.

File:
1 edited

Legend:

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

    r7487 r7522  
    5959  private static HashMap<String, Object> idMap = new HashMap<String, Object>(); 
    6060 
    61   private static boolean cacheListings = false; 
     61  private static volatile boolean cacheListings = false; 
    6262 
    6363  // By default, cache for one hour. 
    64   private static long cacheNanos = 60L * 60L * 1000L * 1000L * 1000L; 
     64  private static volatile long cacheNanos = 60L * 60L * 1000L * 1000L * 1000L; 
    6565 
    6666  protected class ListingsResult { 
Note: See TracChangeset for help on using the changeset viewer.