aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-09-15 14:22:12 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-09-15 14:22:12 +0200
commit42b8d8542e4056ece23af2ff8ee2b5db8abe832b (patch)
tree56c11689351fec9d7366f24ffae4151ea4e69c9f /src/cgeo/geocaching/cgCache.java
parent5e69149eb306e5f43c7339c68b88dd5b3312010c (diff)
parenta97f03151faed72242a99b70b7f2277e0731c802 (diff)
downloadcgeo-42b8d8542e4056ece23af2ff8ee2b5db8abe832b.zip
cgeo-42b8d8542e4056ece23af2ff8ee2b5db8abe832b.tar.gz
cgeo-42b8d8542e4056ece23af2ff8ee2b5db8abe832b.tar.bz2
Merge branch 'constants-for-cache-size' into upstream
Diffstat (limited to 'src/cgeo/geocaching/cgCache.java')
-rw-r--r--src/cgeo/geocaching/cgCache.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cgeo/geocaching/cgCache.java b/src/cgeo/geocaching/cgCache.java
index 4a2243d..68aaf49 100644
--- a/src/cgeo/geocaching/cgCache.java
+++ b/src/cgeo/geocaching/cgCache.java
@@ -3,6 +3,7 @@ package cgeo.geocaching;
import cgeo.geocaching.activity.IAbstractActivity;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.IConnector;
+import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.geopoint.Geopoint;
import org.apache.commons.lang3.StringUtils;
@@ -46,7 +47,7 @@ public class cgCache implements ICache {
public String ownerReal = "";
public Date hidden = null;
public String hint = "";
- public String size = "";
+ public CacheSize size = null;
public Float difficulty = Float.valueOf(0);
public Float terrain = Float.valueOf(0);
public Float direction = null;
@@ -138,7 +139,7 @@ public class cgCache implements ICache {
if (StringUtils.isBlank(hint)) {
hint = other.hint;
}
- if (StringUtils.isBlank(size)) {
+ if (size == null) {
size = other.size;
}
if (difficulty == null || difficulty == 0) {
@@ -398,7 +399,7 @@ public class cgCache implements ICache {
}
@Override
- public String getSize() {
+ public CacheSize getSize() {
return size;
}