jdk/src/java.base/share/classes/sun/security/util/Cache.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   200 
   200 
   201 }
   201 }
   202 
   202 
   203 class NullCache<K,V> extends Cache<K,V> {
   203 class NullCache<K,V> extends Cache<K,V> {
   204 
   204 
   205     final static Cache<Object,Object> INSTANCE = new NullCache<>();
   205     static final Cache<Object,Object> INSTANCE = new NullCache<>();
   206 
   206 
   207     private NullCache() {
   207     private NullCache() {
   208         // empty
   208         // empty
   209     }
   209     }
   210 
   210 
   242 
   242 
   243 }
   243 }
   244 
   244 
   245 class MemoryCache<K,V> extends Cache<K,V> {
   245 class MemoryCache<K,V> extends Cache<K,V> {
   246 
   246 
   247     private final static float LOAD_FACTOR = 0.75f;
   247     private static final float LOAD_FACTOR = 0.75f;
   248 
   248 
   249     // XXXX
   249     // XXXX
   250     private final static boolean DEBUG = false;
   250     private static final boolean DEBUG = false;
   251 
   251 
   252     private final Map<K, CacheEntry<K,V>> cacheMap;
   252     private final Map<K, CacheEntry<K,V>> cacheMap;
   253     private int maxSize;
   253     private int maxSize;
   254     private long lifetime;
   254     private long lifetime;
   255 
   255