See: https://www.pivotaltracker.com/story/show/166760894
This commit is contained in:
Kris De Volder
2019-06-18 10:34:55 -07:00
parent 2cd0b8a541
commit b257cfc4c9

View File

@@ -122,8 +122,10 @@ public class SymbolCacheOnDisc implements SymbolCache {
List<CachedSymbol> symbols = store.getSymbols();
Map<String, Collection<String>> storedDependencies = store.getDependencies();
Multimap<String, String> dependencies = MultimapBuilder.hashKeys().hashSetValues().build();
for (Entry<String, Collection<String>> entry : storedDependencies.entrySet()) {
dependencies.replaceValues(entry.getKey(), entry.getValue());
if (storedDependencies!=null && !storedDependencies.isEmpty()) {
for (Entry<String, Collection<String>> entry : storedDependencies.entrySet()) {
dependencies.replaceValues(entry.getKey(), entry.getValue());
}
}
return Pair.of(
(CachedSymbol[]) symbols.toArray(new CachedSymbol[symbols.size()]),