| Index: sdk/lib/core/map.dart
|
| diff --git a/sdk/lib/core/map.dart b/sdk/lib/core/map.dart
|
| index e5ccb8777fbca825bd982bf8f44c8d024ee70e2c..79e81e4c5a369de9d8a5dc218af24118c2cbdc88 100644
|
| --- a/sdk/lib/core/map.dart
|
| +++ b/sdk/lib/core/map.dart
|
| @@ -15,12 +15,12 @@ abstract class Map<K, V> {
|
| /**
|
| * Creates a Map instance with the default implementation.
|
| */
|
| - factory Map() => new HashMap<K, V>();
|
| + factory Map() = LinkedHashMap<K, V>;
|
|
|
| /**
|
| * Creates a Map instance that contains all key-value pairs of [other].
|
| */
|
| - factory Map.from(Map<K, V> other) => new HashMap<K, V>.from(other);
|
| + factory Map.from(Map<K, V> other) = LinkedHashMap<K, V>.from;
|
|
|
| /**
|
| * Creates a Map instance
|
| @@ -29,7 +29,7 @@ abstract class Map<K, V> {
|
| * For each element of the [iterable] this constructor computes a key-value
|
| * pair, by applying [key] and [value] respectively.
|
| *
|
| - * The keys computed by the source [iterable]
|
| + * The keys computed by the source [iterable]
|
| * do not need to be unique. The last
|
| * occurrence of a key will simply overwrite any previous value.
|
| *
|
| @@ -37,7 +37,7 @@ abstract class Map<K, V> {
|
| * identity function.
|
| */
|
| factory Map.fromIterable(Iterable<K> iterable,
|
| - {K key(element), V value(element)}) = HashMap<K, V>.fromIterable;
|
| + {K key(element), V value(element)}) = LinkedHashMap<K, V>.fromIterable;
|
|
|
| /**
|
| * Creates a Map instance associating the given [keys] to [values].
|
| @@ -51,7 +51,7 @@ abstract class Map<K, V> {
|
| * It is an error if the two [Iterable]s don't have the same length.
|
| */
|
| factory Map.fromIterables(Iterable<K> keys, Iterable<V> values)
|
| - = HashMap<K, V>.fromIterables;
|
| + = LinkedHashMap<K, V>.fromIterables;
|
|
|
| /**
|
| * Returns true if this map contains the given value.
|
|
|