aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-03-12 18:30:22 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-03-12 18:30:22 +0100
commit440101b73ce76bf8c0066dd3fead4813da623cf0 (patch)
tree9e1883d1c1c751fea1a3b790f3429dc2bd7e2957
parent2f6f6112dcf78afd114c9e6ada491120b6fb05e7 (diff)
downloadcgeo-440101b73ce76bf8c0066dd3fead4813da623cf0.zip
cgeo-440101b73ce76bf8c0066dd3fead4813da623cf0.tar.gz
cgeo-440101b73ce76bf8c0066dd3fead4813da623cf0.tar.bz2
refactoring: use faster short circuit evaluation
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 3b15965..f2e455c 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1453,7 +1453,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
List<Geocache> removeList = new ArrayList<Geocache>();
for (Geocache cache : caches) {
- if ((cache.isFound() && excludeMine) || (cache.isOwner() && excludeMine) || (cache.isDisabled() && excludeDisabled)) {
+ if ((excludeMine && cache.isFound()) || (excludeMine && cache.isOwner()) || (excludeDisabled && cache.isDisabled())) {
removeList.add(cache);
}
}