aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgData.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-10-08 18:17:17 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-10-09 09:32:17 +0200
commit11ca6dc4bd6ee2cf702959328b093a34cb871f4c (patch)
treeac01d1defe40b052b5cdb1c2f84bbfa4b04b8977 /main/src/cgeo/geocaching/cgData.java
parent9506d9a7eb13c04f05f89c7ddd9382b2df4d1b4e (diff)
downloadcgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.zip
cgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.tar.gz
cgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.tar.bz2
Use Apache Commons CollectionUtils instead of reinventing one
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r--main/src/cgeo/geocaching/cgData.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index 07a95ab..b860e29 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -4,8 +4,9 @@ import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.files.LocalStorage;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.geopoint.Geopoint.MalformedCoordinateException;
-import cgeo.geocaching.utils.CollectionUtils;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang3.StringUtils;
import android.content.ContentValues;
@@ -1632,7 +1633,7 @@ public class cgData {
public boolean saveLogCount(String geocode, Map<Integer, Integer> logCounts, boolean drop) {
init();
- if (StringUtils.isBlank(geocode) || CollectionUtils.isEmpty(logCounts)) {
+ if (StringUtils.isBlank(geocode) || MapUtils.isEmpty(logCounts)) {
return false;
}