diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-09-04 00:39:03 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-09-04 00:39:03 +0200 |
commit | 86a9147ebb3f2204fe79554d494a1e2bf172b8e2 (patch) | |
tree | f55462dd1789d18b2a152f37e58b4bb487071077 /main/src/cgeo | |
parent | feb3a239c816c5e5a49a47a2fc67fbdff9ca96f6 (diff) | |
download | cgeo-86a9147ebb3f2204fe79554d494a1e2bf172b8e2.zip cgeo-86a9147ebb3f2204fe79554d494a1e2bf172b8e2.tar.gz cgeo-86a9147ebb3f2204fe79554d494a1e2bf172b8e2.tar.bz2 |
Refactoring: remove unnecessary boxing/unboxing
Diffstat (limited to 'main/src/cgeo')
-rw-r--r-- | main/src/cgeo/geocaching/maps/MapProviderFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/MapProviderFactory.java b/main/src/cgeo/geocaching/maps/MapProviderFactory.java index 7c0c8e5..778c921 100644 --- a/main/src/cgeo/geocaching/maps/MapProviderFactory.java +++ b/main/src/cgeo/geocaching/maps/MapProviderFactory.java @@ -93,7 +93,7 @@ public class MapProviderFactory { public static void addMapviewMenuItems(Menu parentMenu, int groupId, int currentSource) { for (Integer key : mapSources.keySet()) { - parentMenu.add(groupId, key, 0, mapSources.get(key).getName()).setCheckable(true).setChecked(key.intValue() == currentSource); + parentMenu.add(groupId, key, 0, mapSources.get(key).getName()).setCheckable(true).setChecked(key == currentSource); } } @@ -102,6 +102,6 @@ public class MapProviderFactory { } public static MapSource getMapSource(int sourceId) { - return mapSources.get(Integer.valueOf(sourceId)); + return mapSources.get(sourceId); } } |