Skip to content

Commit

Permalink
Merge pull request #34 from iamironz/feature/inmemstrategies
Browse files Browse the repository at this point in the history
small type changes
  • Loading branch information
iamironz authored Nov 17, 2017
2 parents 687b051 + f6a16b7 commit 07698e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ironz.binaryprefs;

import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;

import java.util.List;
import java.util.Map;
Expand All @@ -16,7 +16,7 @@ final class ParametersProvider {
private static final Map<String, Lock> processLocks = new ConcurrentHashMap<>();
private static final Map<String, Map<String, Object>> caches = new ConcurrentHashMap<>();
private static final Map<String, Set<String>> cacheCandidates = new ConcurrentHashMap<>();
private static final Map<String, List<SharedPreferences.OnSharedPreferenceChangeListener>> allListeners = new ConcurrentHashMap<>();
private static final Map<String, List<OnSharedPreferenceChangeListener>> allListeners = new ConcurrentHashMap<>();
private static final Map<String, ExecutorService> executors = new ConcurrentHashMap<>();

Map<String, ReadWriteLock> getLocks() {
Expand All @@ -31,7 +31,7 @@ Map<String, Map<String, Object>> getCaches() {
return caches;
}

Map<String, List<SharedPreferences.OnSharedPreferenceChangeListener>> getAllListeners() {
Map<String, List<OnSharedPreferenceChangeListener>> getAllListeners() {
return allListeners;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private Map<String, Object> getAllInternal() {

private Map<String, Object> mergeCache(Map<String, Object> fetched, Map<String, Object> allCache) {
int totalCacheSize = fetched.size() + allCache.size();
HashMap<String, Object> map = new HashMap<>(totalCacheSize);
Map<String, Object> map = new HashMap<>(totalCacheSize);
map.putAll(fetched);
map.putAll(allCache);
return map;
Expand Down

0 comments on commit 07698e5

Please sign in to comment.