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

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableFetcher.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 33  public class TimetableFetcher { Line 33  public class TimetableFetcher {
33                  List<TimetableBean> list = cache.get(key);                  List<TimetableBean> list = cache.get(key);
34                                    
35                  if (list == null) {                  if (list == null) {
                         logger.warning("Timetable: Cache miss " + trainID); //remove before production  
36                          list = lookupTimetable(trainID,type);                          list = lookupTimetable(trainID,type);
37                          cache.put(key, list);                          cache.put(key, list);
38                  } else {                  } else {
39                          logger.warning("Timetable: Cache hit " + trainID); //remove before production                          logger.info("Timetable: Cache hit " + trainID);
40                  }                  }
41                  return list;                  return list;
42          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.20