diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2011-08-12 19:31:29 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2011-08-12 19:31:29 +0200 |
| commit | 0c19dbfe6ae297489848347f2459c5ecf0879abc (patch) | |
| tree | 074b0318c3117f6f5dfc7cbd0dd37bcf49cfd003 /src/cgeo/geocaching/cgCache.java | |
| parent | b1828071fb775384c60f6213264676dca30dc31e (diff) | |
| parent | d4b05d5e07dc2bfbbd6d435c993dac7a434f98bc (diff) | |
| download | cgeo-0c19dbfe6ae297489848347f2459c5ecf0879abc.zip cgeo-0c19dbfe6ae297489848347f2459c5ecf0879abc.tar.gz cgeo-0c19dbfe6ae297489848347f2459c5ecf0879abc.tar.bz2 | |
Merge branch 'master' of https://Bananeweizen@github.com/cgeo/c-geo-opensource.git
Diffstat (limited to 'src/cgeo/geocaching/cgCache.java')
| -rw-r--r-- | src/cgeo/geocaching/cgCache.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cgeo/geocaching/cgCache.java b/src/cgeo/geocaching/cgCache.java index f530541..1fc7bff 100644 --- a/src/cgeo/geocaching/cgCache.java +++ b/src/cgeo/geocaching/cgCache.java @@ -27,8 +27,8 @@ public class cgCache { public Date hidden = null; public String hint = ""; public String size = ""; - public Float difficulty = new Float(0); - public Float terrain = new Float(0); + public Float difficulty = Float.valueOf(0); + public Float terrain = Float.valueOf(0); public Double direction = null; public Double distance = null; public String latlon = ""; @@ -74,19 +74,19 @@ public class cgCache { boolean loadL = true; boolean loadI = true; - if (attributes == null || attributes.isEmpty() == true) { + if (attributes == null || attributes.isEmpty()) { loadA = false; } - if (waypoints == null || waypoints.isEmpty() == true) { + if (waypoints == null || waypoints.isEmpty()) { loadW = false; } - if (spoilers == null || spoilers.isEmpty() == true) { + if (spoilers == null || spoilers.isEmpty()) { loadS = false; } - if (logs == null || logs.isEmpty() == true) { + if (logs == null || logs.isEmpty()) { loadL = false; } - if (inventory == null || inventory.isEmpty() == true) { + if (inventory == null || inventory.isEmpty()) { loadI = false; } @@ -97,7 +97,7 @@ public class cgCache { } updated = System.currentTimeMillis(); - if (detailed == false && oldCache.detailed == true) { + if (detailed == false && oldCache.detailed) { detailed = true; detailedUpdate = System.currentTimeMillis(); } |
