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

Unified Diff: pkg/analysis_server/lib/src/protocol.dart

Issue 325433003: Replace Map with HashMap (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/lib/src/protocol.dart
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
index 9efbf64f92b4c83ab884d6cb8a25b2f81ab0d878..fddf7d2a8cfe89d628ad34bb3b2e6f9aea8cf60a 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -4,6 +4,7 @@
library protocol;
+import 'dart:collection';
import 'dart:convert' show JsonDecoder;
/**
@@ -77,7 +78,7 @@ class Request {
/**
* A table mapping the names of request parameters to their values.
*/
- final Map<String, Object> params = new Map<String, Object>();
+ final Map<String, Object> params = new HashMap<String, Object>();
/**
* A decoder that can be used to decode strings into JSON objects.
@@ -438,7 +439,7 @@ class Response {
* A table mapping the names of result fields to their values. The table
* should be empty if there was an error.
*/
- final Map<String, Object> result = new Map<String, Object>();
+ final Map<String, Object> result = new HashMap<String, Object>();
/**
* Initialize a newly created instance to represent a response to a request
@@ -646,7 +647,7 @@ class RequestError {
/**
* A table mapping the names of notification parameters to their values.
*/
- final Map<String, Object> data = new Map<String, Object>();
+ final Map<String, Object> data = new HashMap<String, Object>();
/**
* Initialize a newly created [Error] to have the given [code] and [message].
@@ -765,7 +766,7 @@ class Notification {
/**
* A table mapping the names of notification parameters to their values.
*/
- final Map<String, Object> params = new Map<String, Object>();
+ final Map<String, Object> params = new HashMap<String, Object>();
/**
* Initialize a newly created [Notification] to have the given [event] name.

Powered by Google App Engine
This is Rietveld 408576698