diff options
author | blafoo <github@blafoo.de> | 2011-10-30 09:32:53 +0100 |
---|---|---|
committer | blafoo <github@blafoo.de> | 2011-10-30 09:32:53 +0100 |
commit | b65d164eff09e0bdf48e8e79a936f8c57246f51a (patch) | |
tree | df54f9a997b1636460423a95871efbc470f20f09 /main | |
parent | 52b93b40d9b288e77d2467259989913fbb05e33b (diff) | |
download | cgeo-b65d164eff09e0bdf48e8e79a936f8c57246f51a.zip cgeo-b65d164eff09e0bdf48e8e79a936f8c57246f51a.tar.gz cgeo-b65d164eff09e0bdf48e8e79a936f8c57246f51a.tar.bz2 |
deprecated
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/apps/AbstractLocusApp.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/cgCache.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java index 982dae6..d1dda2a 100644 --- a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java +++ b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java @@ -123,7 +123,7 @@ public abstract class AbstractLocusApp extends AbstractApp { if (cache.getHidden() != null) { pg.hidden = ISO8601DATE.format(cache.getHidden().getTime()); } - int locusId = toLocusId(CacheType.getById(cache.getType())); + int locusId = toLocusId(cache.getCacheType()); if (locusId != NO_LOCUS_ID) { pg.type = locusId; } diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 13c24d2..89760a8 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -404,6 +404,10 @@ public class cgCache implements ICache { return terrain; } + /** + * @deprecated Use getCacheType() instead + * @return cache type as an id + */ @Deprecated public String getType() { if (null != cacheType) { |