diff --git a/Core/src/org/sleuthkit/autopsy/communications/ContactCache.java b/Core/src/org/sleuthkit/autopsy/communications/ContactCache.java index f711634d4e..1f34b3cf62 100755 --- a/Core/src/org/sleuthkit/autopsy/communications/ContactCache.java +++ b/Core/src/org/sleuthkit/autopsy/communications/ContactCache.java @@ -48,12 +48,10 @@ final class ContactCache { private static final Logger logger = Logger.getLogger(ContactCache.class.getName()); - private final LoadingCache> contactCache; + private final LoadingCache> accountMap; private static ContactCache instance; - private final PropertyChangeListener ingestListener; - /** * Returns the list of Contacts for the given Account. * @@ -65,21 +63,21 @@ final class ContactCache { * @throws ExecutionException */ static synchronized List getContacts(Account account) throws ExecutionException { - return getInstance().contactCache.get(account); + return getInstance().accountMap.get(account); } /** * Force the cache to invalidate all entries. */ static synchronized void invalidateCache() { - getInstance().contactCache.invalidateAll(); + getInstance().accountMap.invalidateAll(); } /** * Construct a new instance. */ private ContactCache() { - contactCache = CacheBuilder.newBuilder().expireAfterAccess(10, TimeUnit.MINUTES).build( + accountMap = CacheBuilder.newBuilder().expireAfterAccess(10, TimeUnit.MINUTES).build( new CacheLoader>() { @Override public List load(Account key) { @@ -94,7 +92,7 @@ final class ContactCache { } }); - this.ingestListener = pce -> { + PropertyChangeListener ingestListener = pce -> { String eventType = pce.getPropertyName(); if (eventType.equals(DATA_ADDED.toString())) { ModuleDataEvent eventData = (ModuleDataEvent) pce.getOldValue();