aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-10-09 12:15:53 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-10-09 12:15:55 +0200
commit992df11aa2c82f8dbfdabd39eff065cbe75f6df1 (patch)
tree3747cce96b68b605b2be1107b94218bf2f84f6c0 /main/src/cgeo/geocaching/cgCache.java
parent57074a76937412d57d0260449edee47e016bc510 (diff)
downloadcgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.zip
cgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.tar.gz
cgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.tar.bz2
Use isEmpty() and isNotEmpty() from CollectionUtils
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r--main/src/cgeo/geocaching/cgCache.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index 210f5e6..9bc8b38 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -6,6 +6,7 @@ import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.geopoint.Geopoint;
+import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import android.app.Activity;
@@ -205,7 +206,7 @@ public class cgCache implements ICache {
inventory = other.inventory;
inventoryItems = other.inventoryItems;
}
- if (logs == null || logs.isEmpty()) { // keep last known logs if none
+ if (CollectionUtils.isEmpty(logs)) { // keep last known logs if none
logs = other.logs;
}
}