diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 14:21:08 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 15:32:57 +0100 |
commit | 5ce29151e122a140915e2971ba7219381f4fcc43 (patch) | |
tree | a74c90d57dc9c64bc1088bfb7fc03f4ad0fd27e1 /main/src/cgeo/geocaching/cgeoapplication.java | |
parent | 7b7d1f4d6da3503ba13d93f6efb699fc4b285699 (diff) | |
download | cgeo-5ce29151e122a140915e2971ba7219381f4fcc43.zip cgeo-5ce29151e122a140915e2971ba7219381f4fcc43.tar.gz cgeo-5ce29151e122a140915e2971ba7219381f4fcc43.tar.bz2 |
Do not use deprecated methods
Diffstat (limited to 'main/src/cgeo/geocaching/cgeoapplication.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeoapplication.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgeoapplication.java b/main/src/cgeo/geocaching/cgeoapplication.java index 6b9aca4..b039060 100644 --- a/main/src/cgeo/geocaching/cgeoapplication.java +++ b/main/src/cgeo/geocaching/cgeoapplication.java @@ -452,17 +452,17 @@ public class cgeoapplication extends Application { return getStorage().loadHistoryOfSearchedLocations(); } - public cgSearch getHistoryOfCaches(boolean detailedOnly, String cachetype) { + public cgSearch getHistoryOfCaches(final boolean detailedOnly, final CacheType cachetype) { final List<String> geocodes = getStorage().loadBatchOfHistoricGeocodes(detailedOnly, cachetype); return new cgSearch(geocodes); } - public cgSearch getCachedInViewport(Long centerLat, Long centerLon, Long spanLat, Long spanLon, String cachetype) { + public cgSearch getCachedInViewport(final Long centerLat, final Long centerLon, final Long spanLat, final Long spanLon, final CacheType cachetype) { final List<String> geocodes = getStorage().getCachedInViewport(centerLat, centerLon, spanLat, spanLon, cachetype); return new cgSearch(geocodes); } - public cgSearch getStoredInViewport(Long centerLat, Long centerLon, Long spanLat, Long spanLon, String cachetype) { + public cgSearch getStoredInViewport(final Long centerLat, final Long centerLon, final Long spanLat, final Long spanLon, final CacheType cachetype) { final List<String> geocodes = getStorage().getStoredInViewport(centerLat, centerLon, spanLat, spanLon, cachetype); return new cgSearch(geocodes); } |