aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-22 00:36:00 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-22 00:44:13 +0200
commit7af5c4f07dc6fbb9b8ca0c9e9bd29afd35d7f148 (patch)
treeb3b54deec4f097801e8bed18ebdd943e695d6bee /main/src/cgeo/geocaching/cgeocaches.java
parent29f8b62480af4aee65f2c618f78317ae6481eb5c (diff)
downloadcgeo-7af5c4f07dc6fbb9b8ca0c9e9bd29afd35d7f148.zip
cgeo-7af5c4f07dc6fbb9b8ca0c9e9bd29afd35d7f148.tar.gz
cgeo-7af5c4f07dc6fbb9b8ca0c9e9bd29afd35d7f148.tar.bz2
Refactoring: remove unnecessary unboxing
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index a5ca2af..4ab9260 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -734,7 +734,7 @@ public class cgeocaches extends AbstractListActivity {
Collections.sort(sortedLabels);
for (String label : sortedLabels) {
Integer id = comparators.get(label);
- subMenuSort.add(1, id.intValue(), 0, label).setCheckable(true).setChecked(id.intValue() == MENU_SORT_DISTANCE);
+ subMenuSort.add(1, id, 0, label).setCheckable(true).setChecked(id == MENU_SORT_DISTANCE);
}
subMenuSort.setGroupCheckable(1, true, true);
@@ -1950,7 +1950,7 @@ public class cgeocaches extends AbstractListActivity {
@Override
public void run(final Integer selectedListId) {
- switchListById(selectedListId.intValue());
+ switchListById(selectedListId);
}
});
}