/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimeoutMap.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimeoutMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 431 by torben, Fri Oct 9 09:06:43 2009 UTC revision 432 by torben, Sat Oct 10 09:56:10 2009 UTC
# Line 113  public class TimeoutMap<K,V> implements Line 113  public class TimeoutMap<K,V> implements
113          public V put(K key, V value) {                    public V put(K key, V value) {          
114                  CacheItem<V> item= new CacheItem<V>(value);                  CacheItem<V> item= new CacheItem<V>(value);
115                                    
116                  return cache.put(key, item).value;                  item = cache.put(key, item);
117                    
118                    if (item != null)
119                            return item.value;
120                    else
121                            return null;
122          }          }
123                    
124  }  }

Legend:
Removed from v.431  
changed lines
  Added in v.432

  ViewVC Help
Powered by ViewVC 1.1.20