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

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

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

revision 388 by torben, Fri Oct 2 15:06:08 2009 UTC revision 389 by torben, Fri Oct 2 17:18:31 2009 UTC
# Line 29  public class DepartureFetcher { Line 29  public class DepartureFetcher {
29                  List<DepartureBean> list = cache.get(stationID);                  List<DepartureBean> list = cache.get(stationID);
30                                    
31                  if (list == null) {                  if (list == null) {
                         logger.warning("Departure: Cache miss " + stationID); //remove before production  
32                          list = lookupDepartures(stationID);                          list = lookupDepartures(stationID);
33                          cache.put(stationID, list);                          cache.put(stationID, list);
34                  } else {                  } else {
35                          logger.warning("Departure: Cache hit " + stationID); //remove before production                          logger.info("Departure: Cache hit " + stationID); //remove before production
36                  }                  }
37                  return list;                  return list;
38          }          }

Legend:
Removed from v.388  
changed lines
  Added in v.389

  ViewVC Help
Powered by ViewVC 1.1.20