- Timestamp:
- 2010-01-30T20:46:40+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r2907 r2908 18 18 public boolean drawLine; 19 19 public int dir; 20 21 private static ThreadLocal<PrimaryDateParser> dateParser = new ThreadLocal<PrimaryDateParser>() { 22 @Override protected PrimaryDateParser initialValue() { 23 return new PrimaryDateParser(); 24 } 25 }; 20 26 21 27 private final CachedLatLon coor; … … 43 49 public void setTime() { 44 50 if(attr.containsKey("time")) { 45 PrimaryDateParser dateParser = new PrimaryDateParser();46 51 try { 47 time = dateParser. parse(attr.get("time").toString()).getTime() / 1000.; /* ms => seconds */52 time = dateParser.get().parse(attr.get("time").toString()).getTime() / 1000.; /* ms => seconds */ 48 53 } catch(Exception e) { 49 54 time = 0;
Note:
See TracChangeset
for help on using the changeset viewer.