aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXParser.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-03-22 22:33:01 +0100
committerSamuel Tardieu <sam@rfc1149.net>2012-03-22 23:15:34 +0100
commitda58fdf26e5b350d3e1ec92967cf1593b4b7becb (patch)
tree406a8f02c62d4757f52887e86e4cb1bfde6f1bf7 /main/src/cgeo/geocaching/files/GPXParser.java
parent4ff054e570e86a68f94f942d21d5e735f58d9ab1 (diff)
downloadcgeo-da58fdf26e5b350d3e1ec92967cf1593b4b7becb.zip
cgeo-da58fdf26e5b350d3e1ec92967cf1593b4b7becb.tar.gz
cgeo-da58fdf26e5b350d3e1ec92967cf1593b4b7becb.tar.bz2
Lint: use Double.valueOf(…) instead of new Double(…)
Android Lint v. 17
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 579c080..46cb481 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -255,8 +255,8 @@ public abstract class GPXParser extends FileParser {
public void start(Attributes attrs) {
try {
if (attrs.getIndex("lat") > -1 && attrs.getIndex("lon") > -1) {
- cache.setCoords(new Geopoint(new Double(attrs.getValue("lat")),
- new Double(attrs.getValue("lon"))));
+ cache.setCoords(new Geopoint(Double.valueOf(attrs.getValue("lat")),
+ Double.valueOf(attrs.getValue("lon"))));
}
} catch (Exception e) {
Log.w(Settings.tag, "Failed to parse waypoint's latitude and/or longitude.");