diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-08 18:17:17 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 09:32:17 +0200 |
commit | 11ca6dc4bd6ee2cf702959328b093a34cb871f4c (patch) | |
tree | ac01d1defe40b052b5cdb1c2f84bbfa4b04b8977 /main/src/cgeo/geocaching/cgData.java | |
parent | 9506d9a7eb13c04f05f89c7ddd9382b2df4d1b4e (diff) | |
download | cgeo-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.java | 5 |
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; } |