From 34c178f55678d7c8042a460ecd632d52c300cc94 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 1 Jul 2012 13:32:01 +0200 Subject: Refactoring: remove redundant constructs --- main/src/cgeo/geocaching/CacheDetailActivity.java | 2 +- main/src/cgeo/geocaching/connector/gc/GCParser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index e6be2b8..d1b0fde 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -2131,7 +2131,7 @@ public class CacheDetailActivity extends AbstractActivity { ArrayList labels = new ArrayList(sortedLogCounts.size()); for (Entry pair : sortedLogCounts) { - labels.add(pair.getValue().intValue() + "× " + pair.getKey().getL10n()); + labels.add(pair.getValue() + "× " + pair.getKey().getL10n()); } final TextView countView = new TextView(CacheDetailActivity.this); diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 004a50f..2ca505d 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -410,7 +410,7 @@ public abstract class GCParser { } // owner - cache.setOwnerDisplayName(StringEscapeUtils.unescapeHtml4(BaseUtils.getMatch(tableInside, GCConstants.PATTERN_OWNER_DISPLAYNAME, true, cache.getOwnerDisplayName())).toString()); + cache.setOwnerDisplayName(StringEscapeUtils.unescapeHtml4(BaseUtils.getMatch(tableInside, GCConstants.PATTERN_OWNER_DISPLAYNAME, true, cache.getOwnerDisplayName()))); // hidden try { -- cgit v1.1