aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/sorting/RatingComparator.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/sorting/RatingComparator.java')
-rw-r--r--main/src/cgeo/geocaching/sorting/RatingComparator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/sorting/RatingComparator.java b/main/src/cgeo/geocaching/sorting/RatingComparator.java
index 3c0fc02..935ccd8 100644
--- a/main/src/cgeo/geocaching/sorting/RatingComparator.java
+++ b/main/src/cgeo/geocaching/sorting/RatingComparator.java
@@ -10,13 +10,13 @@ public class RatingComparator extends AbstractCacheComparator {
@Override
protected boolean canCompare(cgCache cache1, cgCache cache2) {
- return cache1.getRating() != null && cache2.getRating() != null;
+ return true;
}
@Override
protected int compareCaches(cgCache cache1, cgCache cache2) {
- Float rating1 = cache1.getRating();
- Float rating2 = cache2.getRating();
+ float rating1 = cache1.getRating();
+ float rating2 = cache2.getRating();
// voting can be disabled for caches, then assume an average rating instead
if (rating1 == 0.0) {