Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: pkg/analysis_server/lib/src/source/caching_pub_package_map_provider.dart

Issue 2198223002: Mark analysis_server as being strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/channel/web_socket_channel.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/analysis_server/lib/src/channel/web_socket_channel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698