aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-07-01 13:32:01 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-07-01 13:32:01 +0200
commit34c178f55678d7c8042a460ecd632d52c300cc94 (patch)
tree0e4373e92cb1a1246e6d51a05368bc18908abeb7 /main/src
parentba933f4c55bbb335bb42317839e90d1ed649a52e (diff)
downloadcgeo-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.java2
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java2
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 {