Index: pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart |
diff --git a/pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart b/pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart |
index 3d9962208abffc2d7e5ac3b94365358d478fc583..1997bffeb15a53eadf45ddb1b7fe464aa978ebb8 100644 |
--- a/pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart |
+++ b/pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart |
@@ -106,7 +106,8 @@ class CachingPubPackageMapProvider extends PubPackageMapProvider { |
// Check for cached entry |
Map entry = _cache[folder.path]; |
if (entry != null) { |
- Map<String, int> modificationStamps = entry[modificationStampsKey]; |
+ Map<String, int> modificationStamps = |
+ entry[modificationStampsKey] as Map<String, int>; |
if (modificationStamps != null) { |
// |
// Check to see if any dependencies have changed |
@@ -217,7 +218,7 @@ class CachingPubPackageMapProvider extends PubPackageMapProvider { |
TimestampedData<String> data = source.contents; |
Map map = JSON.decode(data.data); |
if (map[cacheVersionKey] == cacheVersion) { |
- _cache = map[cacheKey]; |
+ _cache = map[cacheKey] as Map<String, Map>; |
_cacheModificationTime = data.modificationTime; |
} |
} catch (exception, stackTrace) { |