diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2011-12-03 15:12:03 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2011-12-03 15:12:03 +0100 |
commit | da83fd577df3f69027040a18573a0fb1e2111f40 (patch) | |
tree | 9bc2ce5de5913baa2630b9b09f4e6d71a236d2c7 /main/src/cgeo/geocaching/files/LocParser.java | |
parent | 0c22235950d17dcae886424810eafd67a40c3ad4 (diff) | |
download | cgeo-da83fd577df3f69027040a18573a0fb1e2111f40.zip cgeo-da83fd577df3f69027040a18573a0fb1e2111f40.tar.gz cgeo-da83fd577df3f69027040a18573a0fb1e2111f40.tar.bz2 |
refactoring: reduce boxing/unboxing craziness
Diffstat (limited to 'main/src/cgeo/geocaching/files/LocParser.java')
-rw-r--r-- | main/src/cgeo/geocaching/files/LocParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/files/LocParser.java b/main/src/cgeo/geocaching/files/LocParser.java index 14acbf6..bbf2d7a 100644 --- a/main/src/cgeo/geocaching/files/LocParser.java +++ b/main/src/cgeo/geocaching/files/LocParser.java @@ -100,11 +100,11 @@ public final class LocParser extends FileParser { } final Matcher matcherDifficulty = patternDifficulty.matcher(pointString); if (matcherDifficulty.find()) { - pointCoord.setDifficulty(new Float(matcherDifficulty.group(1).trim())); + pointCoord.setDifficulty(Float.parseFloat(matcherDifficulty.group(1).trim())); } final Matcher matcherTerrain = patternTerrain.matcher(pointString); if (matcherTerrain.find()) { - pointCoord.setTerrain(new Float(matcherTerrain.group(1).trim())); + pointCoord.setTerrain(Float.parseFloat(matcherTerrain.group(1).trim())); } final Matcher matcherContainer = patternContainer.matcher(pointString); if (matcherContainer.find()) { |