1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Avoid cast

This commit is contained in:
Jan Berkel 2014-12-12 06:54:34 +00:00
parent 9fd722d7cd
commit 5af649c271

View File

@ -70,7 +70,7 @@ public class LocalStore extends Store implements Serializable {
/**
* Local stores indexed by UUID because the Uri may change due to migration to/from SD-card.
*/
private static ConcurrentMap<String, Store> sLocalStores = new ConcurrentHashMap<String, Store>();
private static ConcurrentMap<String, LocalStore> sLocalStores = new ConcurrentHashMap<String, LocalStore>();
/*
* a String containing the columns getMessages expects to work with
@ -195,7 +195,7 @@ public class LocalStore extends Store implements Serializable {
// Use per-account locks so DatabaseUpgradeService always knows which account database is
// currently upgraded.
synchronized (lock) {
Store store = sLocalStores.get(accountUuid);
LocalStore store = sLocalStores.get(accountUuid);
if (store == null) {
// Creating a LocalStore instance will create or upgrade the database if
@ -205,7 +205,7 @@ public class LocalStore extends Store implements Serializable {
sLocalStores.put(accountUuid, store);
}
return (LocalStore) store;
return store;
}
}