aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-06-17 09:16:32 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-06-17 09:16:32 +0200
commit311266e7833c575895378bfc7c647c83fc7fbd51 (patch)
treeae9ecd9031b47893082925eefabb88cba9e04680 /main/src
parent73c1b4663ddaa5ed28b2df0c206859f9a58a5705 (diff)
downloadcgeo-311266e7833c575895378bfc7c647c83fc7fbd51.zip
cgeo-311266e7833c575895378bfc7c647c83fc7fbd51.tar.gz
cgeo-311266e7833c575895378bfc7c647c83fc7fbd51.tar.bz2
Refactoring: remove redundant initializers
The initial null value is always overriden later.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java4
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 21b962c..79ea44a 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1085,7 +1085,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
showProgressHandler.sendEmptyMessage(SHOW_PROGRESS);
loadThreadRun = System.currentTimeMillis();
- SearchResult searchResult = null;
+ SearchResult searchResult;
// stage 1 - pull and render from the DB only for live map
if (mapMode == MapMode.LIVE_ONLINE) {
searchResult = new SearchResult(app.getCachedInViewport(viewport, Settings.getCacheType()));
@@ -1162,7 +1162,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
showProgressHandler.sendEmptyMessage(SHOW_PROGRESS); // show progress
int count = 0;
- SearchResult searchResult = null;
+ SearchResult searchResult;
do {
if (tokens == null) {