diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-04-07 09:18:03 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-04-07 09:18:03 +0200 |
| commit | 1d1a6b02b77f65b1e9271acd56514fc443fdce4e (patch) | |
| tree | a3ee2daf7131111b027f94c246e7d04c197b380d /main/src/cgeo/geocaching/maps/CGeoMap.java | |
| parent | 0518f75e136d51260164bb2681b03353b65b6ba5 (diff) | |
| download | cgeo-1d1a6b02b77f65b1e9271acd56514fc443fdce4e.zip cgeo-1d1a6b02b77f65b1e9271acd56514fc443fdce4e.tar.gz cgeo-1d1a6b02b77f65b1e9271acd56514fc443fdce4e.tar.bz2 | |
refactoring: remove redundant type casts
getParcelable() does not return a Parcelable, it returns a T where T is
a generic type deriving from Parcelable. Those type casts will be done
automatically and do not need to be spelled out explicitely.
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CGeoMap.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index e305b20..21c4984 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -382,9 +382,9 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto if (extras != null) { mapMode = (MapMode) extras.get(EXTRAS_MAP_MODE); isLiveEnabled = extras.getBoolean(EXTRAS_LIVE_ENABLED, false); - searchIntent = (SearchResult) extras.getParcelable(EXTRAS_SEARCH); + searchIntent = extras.getParcelable(EXTRAS_SEARCH); geocodeIntent = extras.getString(EXTRAS_GEOCODE); - coordsIntent = (Geopoint) extras.getParcelable(EXTRAS_COORDS); + coordsIntent = extras.getParcelable(EXTRAS_COORDS); waypointTypeIntent = WaypointType.findById(extras.getString(EXTRAS_WPTTYPE)); mapStateIntent = extras.getIntArray(EXTRAS_MAPSTATE); mapTitle = extras.getString(EXTRAS_MAP_TITLE); |
