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

Unified Diff: pkg/analysis_server/lib/src/resource.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/resource.dart
diff --git a/pkg/analysis_server/lib/src/resource.dart b/pkg/analysis_server/lib/src/resource.dart
index e3df8afb24bb5e0814f48220e45d964d8ee132ac..4c6745ffb458fb8c1639c28f7d24b9dd10a8adda 100644
--- a/pkg/analysis_server/lib/src/resource.dart
+++ b/pkg/analysis_server/lib/src/resource.dart
@@ -5,6 +5,7 @@
library resource;
import 'dart:async';
+import 'dart:collection';
import 'dart:io' as io;
import 'package:analyzer/src/generated/engine.dart' show TimestampedData;
@@ -265,11 +266,11 @@ class _MemoryFolder extends _MemoryResource implements Folder {
* Use `/` as a path separator.
*/
class MemoryResourceProvider implements ResourceProvider {
- final Map<String, _MemoryResource> _pathToResource = <String, _MemoryResource>{};
- final Map<String, String> _pathToContent = <String, String>{};
- final Map<String, int> _pathToTimestamp = <String, int>{};
+ final Map<String, _MemoryResource> _pathToResource = new HashMap<String, _MemoryResource>();
scheglov 2014/06/06 19:26:46 More than 80 characters.
+ final Map<String, String> _pathToContent = new HashMap<String, String>();
+ final Map<String, int> _pathToTimestamp = new HashMap<String, int>();
final Map<String, StreamController<WatchEvent>> _pathToWatcher =
- <String, StreamController<WatchEvent>>{};
+ new HashMap<String, StreamController<WatchEvent>>();
int nextStamp = 0;
@override
« pkg/analysis_server/lib/src/analysis_server.dart ('K') | « pkg/analysis_server/lib/src/protocol.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698