aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/Geocache.java
diff options
context:
space:
mode:
authorMichael Keppler <bananeweizen@gmx.de>2013-12-23 17:43:57 +0100
committerMichael Keppler <bananeweizen@gmx.de>2013-12-23 17:43:57 +0100
commit3652910d49777fa5b2303acce347255d56842044 (patch)
tree56111b307a01b0652eb0cd7913afe49e9a984c88 /main/src/cgeo/geocaching/Geocache.java
parent460dba542114fab474f79bc01799247be7f81442 (diff)
downloadcgeo-3652910d49777fa5b2303acce347255d56842044.zip
cgeo-3652910d49777fa5b2303acce347255d56842044.tar.gz
cgeo-3652910d49777fa5b2303acce347255d56842044.tar.bz2
fix some findbugs findings
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 241f180..6262792 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -1722,10 +1722,10 @@ public class Geocache implements ICache, IWaypoint {
final MatcherWrapper matcher = new MatcherWrapper(pattern, getDescription());
while (matcher.find()) {
try {
- final int hours = Integer.valueOf(matcher.group(1));
+ final int hours = Integer.parseInt(matcher.group(1));
int minutes = 0;
if (matcher.groupCount() >= 2) {
- minutes = Integer.valueOf(matcher.group(2));
+ minutes = Integer.parseInt(matcher.group(2));
}
if (hours >= 0 && hours < 24 && minutes >= 0 && minutes < 60) {
return String.valueOf(hours * 60 + minutes);