From 5af649c27164df1b3347b2f218ee48909baf2a74 Mon Sep 17 00:00:00 2001 From: Jan Berkel Date: Fri, 12 Dec 2014 06:54:34 +0000 Subject: [PATCH] Avoid cast --- src/com/fsck/k9/mail/store/local/LocalStore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/mail/store/local/LocalStore.java b/src/com/fsck/k9/mail/store/local/LocalStore.java index f4c82743a..1aad9386a 100644 --- a/src/com/fsck/k9/mail/store/local/LocalStore.java +++ b/src/com/fsck/k9/mail/store/local/LocalStore.java @@ -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 sLocalStores = new ConcurrentHashMap(); + private static ConcurrentMap sLocalStores = new ConcurrentHashMap(); /* * 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; } }