diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-09-04 00:44:31 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-09-04 00:44:31 +0200 |
| commit | 9b0b7f4f8a2a57e70af74ba477187a92df9a022a (patch) | |
| tree | e87770ae3e421520f7c2321da81ec1b7de6ac781 /main/src/cgeo/geocaching/SearchActivity.java | |
| parent | 3b670d190c0dacfffb49559e2af2da08fd3360b1 (diff) | |
| download | cgeo-9b0b7f4f8a2a57e70af74ba477187a92df9a022a.zip cgeo-9b0b7f4f8a2a57e70af74ba477187a92df9a022a.tar.gz cgeo-9b0b7f4f8a2a57e70af74ba477187a92df9a022a.tar.bz2 | |
Refactoring: remove redundant type casts
Those type casts were unnecessary, as the returned value was already of
the target type, or the called method (after the cast) was defined by
the originally returned type.
Diffstat (limited to 'main/src/cgeo/geocaching/SearchActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/SearchActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/SearchActivity.java b/main/src/cgeo/geocaching/SearchActivity.java index 3221479..562d5c3 100644 --- a/main/src/cgeo/geocaching/SearchActivity.java +++ b/main/src/cgeo/geocaching/SearchActivity.java @@ -129,8 +129,8 @@ public class SearchActivity extends AbstractActivity { private void init() { Settings.getLogin(); - ((Button) findViewById(R.id.buttonLatitude)).setOnClickListener(new findByCoordsAction()); - ((Button) findViewById(R.id.buttonLongitude)).setOnClickListener(new findByCoordsAction()); + findViewById(R.id.buttonLatitude).setOnClickListener(new findByCoordsAction()); + findViewById(R.id.buttonLongitude).setOnClickListener(new findByCoordsAction()); final Button findByCoords = (Button) findViewById(R.id.search_coordinates); findByCoords.setOnClickListener(new findByCoordsListener()); |
