aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgBase.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2011-10-22 10:19:50 +0200
committerBananeweizen <bananeweizen@gmx.de>2011-10-22 10:19:50 +0200
commit761a5a495aada88c2fd281a71f3982449f9dfaea (patch)
treee388fbd6ed5632ab482aca49b888049d8176355c /main/src/cgeo/geocaching/cgBase.java
parentf80e1bff51b0ecaa6508389736696e6c185f2872 (diff)
downloadcgeo-761a5a495aada88c2fd281a71f3982449f9dfaea.zip
cgeo-761a5a495aada88c2fd281a71f3982449f9dfaea.tar.gz
cgeo-761a5a495aada88c2fd281a71f3982449f9dfaea.tar.bz2
make terrain parsing more fault tolerant and update test case
* will now work with future changes of GC in the string numbers * avoids warning in unit tests
Diffstat (limited to 'main/src/cgeo/geocaching/cgBase.java')
-rw-r--r--main/src/cgeo/geocaching/cgBase.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java
index 64effed..a98a0a4 100644
--- a/main/src/cgeo/geocaching/cgBase.java
+++ b/main/src/cgeo/geocaching/cgBase.java
@@ -1526,43 +1526,43 @@ public class cgBase {
private static void checkFields(cgCache cache) {
if (StringUtils.isBlank(cache.geocode)) {
- Log.w(Settings.tag, "cgBase.loadLogsFromDetails: geo code not parsed correctly");
+ Log.e(Settings.tag, "cgBase.loadLogsFromDetails: geo code not parsed correctly");
}
if (StringUtils.isBlank(cache.name)) {
- Log.w(Settings.tag, "name not parsed correctly");
+ Log.e(Settings.tag, "name not parsed correctly");
}
if (StringUtils.isBlank(cache.guid)) {
- Log.w(Settings.tag, "guid not parsed correctly");
+ Log.e(Settings.tag, "guid not parsed correctly");
}
if (cache.terrain == null || cache.terrain == 0.0) {
- Log.w(Settings.tag, "terrain not parsed correctly");
+ Log.e(Settings.tag, "terrain not parsed correctly");
}
if (cache.difficulty == null || cache.difficulty == 0.0) {
- Log.w(Settings.tag, "difficulty not parsed correctly");
+ Log.e(Settings.tag, "difficulty not parsed correctly");
}
if (StringUtils.isBlank(cache.owner)) {
- Log.w(Settings.tag, "owner not parsed correctly");
+ Log.e(Settings.tag, "owner not parsed correctly");
}
if (StringUtils.isBlank(cache.ownerReal)) {
- Log.w(Settings.tag, "owner real not parsed correctly");
+ Log.e(Settings.tag, "owner real not parsed correctly");
}
if (cache.hidden == null) {
- Log.w(Settings.tag, "hidden not parsed correctly");
+ Log.e(Settings.tag, "hidden not parsed correctly");
}
if (cache.favouriteCnt == null) {
- Log.w(Settings.tag, "favoriteCount not parsed correctly");
+ Log.e(Settings.tag, "favoriteCount not parsed correctly");
}
if (cache.size == null) {
- Log.w(Settings.tag, "size not parsed correctly");
+ Log.e(Settings.tag, "size not parsed correctly");
}
if (StringUtils.isBlank(cache.type)) {
- Log.w(Settings.tag, "type not parsed correctly");
+ Log.e(Settings.tag, "type not parsed correctly");
}
if (cache.coords == null) {
- Log.w(Settings.tag, "coordinates not parsed correctly");
+ Log.e(Settings.tag, "coordinates not parsed correctly");
}
if (StringUtils.isBlank(cache.location)) {
- Log.w(Settings.tag, "location not parsed correctly");
+ Log.e(Settings.tag, "location not parsed correctly");
}
}