aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/oc/OkapiClient.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-06-29 16:30:01 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-06-29 16:30:01 +0200
commit63a35323a6741487fcd122312164bd1a38feaee4 (patch)
tree2936513b8f6aaf6cbe0cdc130deb8ac345c4fa1f /main/src/cgeo/geocaching/connector/oc/OkapiClient.java
parent9f39b088e3d15622e06c9c075ffd52bb128afc9d (diff)
downloadcgeo-63a35323a6741487fcd122312164bd1a38feaee4.zip
cgeo-63a35323a6741487fcd122312164bd1a38feaee4.tar.gz
cgeo-63a35323a6741487fcd122312164bd1a38feaee4.tar.bz2
fix several name shadowing occurrences
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OkapiClient.java')
-rw-r--r--main/src/cgeo/geocaching/connector/oc/OkapiClient.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OkapiClient.java b/main/src/cgeo/geocaching/connector/oc/OkapiClient.java
index 477830c..8bbbf18 100644
--- a/main/src/cgeo/geocaching/connector/oc/OkapiClient.java
+++ b/main/src/cgeo/geocaching/connector/oc/OkapiClient.java
@@ -297,9 +297,7 @@ final class OkapiClient {
final JSONObject cachesResponse = response.getJSONObject("results");
if (cachesResponse != null) {
final List<Geocache> caches = new ArrayList<Geocache>(cachesResponse.length());
- @SuppressWarnings("unchecked")
- final
- Iterator<String> keys = cachesResponse.keys();
+ final Iterator<String> keys = cachesResponse.keys();
while (keys.hasNext()) {
final String key = keys.next();
final Geocache cache = parseSmallCache(cachesResponse.getJSONObject(key));
@@ -320,7 +318,7 @@ final class OkapiClient {
parseCoreCache(response, cache);
- DataStore.saveCache(cache, EnumSet.of(SaveFlag.SAVE_CACHE));
+ DataStore.saveCache(cache, EnumSet.of(SaveFlag.CACHE));
} catch (final JSONException e) {
Log.e("OkapiClient.parseSmallCache", e);
}
@@ -401,7 +399,7 @@ final class OkapiClient {
cache.setDetailedUpdatedNow();
// save full detailed caches
- DataStore.saveCache(cache, EnumSet.of(SaveFlag.SAVE_DB));
+ DataStore.saveCache(cache, EnumSet.of(SaveFlag.DB));
DataStore.saveLogsWithoutTransaction(cache.getGeocode(), parseLogs(response.getJSONArray(CACHE_LATEST_LOGS)));
} catch (final JSONException e) {
Log.e("OkapiClient.parseCache", e);