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

Unified Diff: pkg/analyzer/lib/src/context/cache.dart

Issue 1153503005: Make analyzer DDC warning clean. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
Index: pkg/analyzer/lib/src/context/cache.dart
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart
index 531f84fd2d91922760aa2719a7953774ac182be5..d9fada497b7f4c61b161e264b2ad32a98fb79d11 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -158,7 +158,8 @@ class AnalysisCache {
*/
MapIterator<AnalysisTarget, CacheEntry> iterator() {
int count = _partitions.length;
- List<Map<AnalysisTarget, CacheEntry>> maps = new List<Map>(count);
+ List<Map<AnalysisTarget, CacheEntry>> maps =
vsm 2015/06/01 13:48:45 Consider dropping the type on the lhs side. We'll
+ new List<Map<AnalysisTarget, CacheEntry>>(count);
for (int i = 0; i < count; i++) {
maps[i] = _partitions[i].map;
}

Powered by Google App Engine
This is Rietveld 408576698