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

Diff of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/banedk/TimetableFetcher.java

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

revision 1094 by torben, Tue Sep 21 20:10:46 2010 UTC revision 1095 by torben, Tue Sep 21 20:14:34 2010 UTC
# Line 67  public class TimetableFetcher { Line 67  public class TimetableFetcher {
67                    
68          TimetableBean cachedLookupTimetable(String trainID, String type) throws Exception {          TimetableBean cachedLookupTimetable(String trainID, String type) throws Exception {
69                  String key = trainID+type;                  String key = trainID+type;
70                  TimetableBean list = cache.get(key);                  TimetableBean list = (TimetableBean) cache.get(key);
71                                    
72                  if (list == null) {                  if (list == null) {
73                          list = lookupTimetable(trainID,type);                          list = lookupTimetable(trainID,type);
# Line 89  public class TimetableFetcher { Line 89  public class TimetableFetcher {
89          }          }
90                    
91          int getStationId(String name) {          int getStationId(String name) {
92                  Integer id = stationCache.get(name);                  Integer id = (Integer) stationCache.get(name);
93                                    
94                  if (id == null) {                  if (id == null) {
95                          try {                          try {

Legend:
Removed from v.1094  
changed lines
  Added in v.1095

  ViewVC Help
Powered by ViewVC 1.1.20