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

Unified Diff: pkg/analysis_server/benchmark/integration/log_file_input_converter.dart

Issue 1855643002: More strong mode changes to analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Backout changes to options file 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/analysis_server/benchmark/integration/log_file_input_converter.dart
diff --git a/pkg/analysis_server/benchmark/integration/log_file_input_converter.dart b/pkg/analysis_server/benchmark/integration/log_file_input_converter.dart
index ba98b3b11714c4029c212c726113065ac77748c9..3490860dee19f3abeba8f08f7945d9316b522965 100644
--- a/pkg/analysis_server/benchmark/integration/log_file_input_converter.dart
+++ b/pkg/analysis_server/benchmark/integration/log_file_input_converter.dart
@@ -32,14 +32,14 @@ class LogFileInputConverter extends CommonInputConverter {
String timeStampString = _parseTimeStamp(line);
String data = line.substring(timeStampString.length);
if (data.startsWith(RECEIVED_FRAGMENT)) {
- Map<String, dynamic> json = JSON.decode(data.substring(4));
+ Map<String, dynamic> json = asMap(JSON.decode(data.substring(4)));
if (json.containsKey('event')) {
return convertNotification(json);
} else {
return convertResponse(json);
}
} else if (data.startsWith(SENT_FRAGMENT)) {
- Map<String, dynamic> json = JSON.decode(data.substring(4));
+ Map<String, dynamic> json = asMap(JSON.decode(data.substring(4)));
if (json.containsKey('method')) {
return convertRequest(json);
}

Powered by Google App Engine
This is Rietveld 408576698