diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-07-01 13:32:01 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-07-01 13:32:01 +0200 |
commit | 34c178f55678d7c8042a460ecd632d52c300cc94 (patch) | |
tree | 0e4373e92cb1a1246e6d51a05368bc18908abeb7 /main/src | |
parent | ba933f4c55bbb335bb42317839e90d1ed649a52e (diff) | |
download | cgeo-34c178f55678d7c8042a460ecd632d52c300cc94.zip cgeo-34c178f55678d7c8042a460ecd632d52c300cc94.tar.gz cgeo-34c178f55678d7c8042a460ecd632d52c300cc94.tar.bz2 |
Refactoring: remove redundant constructs
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 2 |
2 files changed, 2 insertions, 2 deletions
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<String> labels = new ArrayList<String>(sortedLogCounts.size()); for (Entry<LogType, Integer> 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 { |