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

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

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 9 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 98e04518c71f5a6c5889d8f2a62a1c8a19105b24..8be0a41b658a3b034501ba2ec492024fec44c3a4 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -173,12 +173,13 @@ class AnalysisCache {
* It does not update the cache, if the corresponding [CacheEntry] does not
* exist, then the default value is returned.
*/
- Object getValue(AnalysisTarget target, ResultDescriptor result) {
+ Object/*=V*/ getValue/*<V>*/(
+ AnalysisTarget target, ResultDescriptor/*<V>*/ result) {
CacheEntry entry = get(target);
if (entry == null) {
return result.defaultValue;
}
- return entry.getValue(result);
+ return entry.getValue(result) as Object/*=V*/;
}
/**

Powered by Google App Engine
This is Rietveld 408576698