Skip to content

Commit

Permalink
Fix signatures of isValidKey arguments to CanonicalizedMap constructors.
Browse files Browse the repository at this point in the history
R=wibling@google.com

Review URL: https://codereview.chromium.org//1133583002
  • Loading branch information
lrhn committed May 7, 2015
1 parent 1da9a07 commit 4d71c7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.1

* Bug-fix for signatures of `isValidKey` arguments of `CanonicalizedMap`.

## 1.1.0

* Add a `QueueList` class that implements both `Queue` and `List`.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/canonicalized_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CanonicalizedMap<C, K, V> implements Map<K, V> {
* methods that take arbitrary objects. It can be used to filter out keys that
* can't be canonicalized.
*/
CanonicalizedMap(C canonicalize(K key), {bool isValidKey(K key)})
CanonicalizedMap(C canonicalize(K key), {bool isValidKey(Object key)})
: _canonicalize = canonicalize,
_isValidKeyFn = isValidKey;

Expand All @@ -51,7 +51,7 @@ class CanonicalizedMap<C, K, V> implements Map<K, V> {
* can't be canonicalized.
*/
CanonicalizedMap.from(Map<K, V> other, C canonicalize(K key),
{bool isValidKey(K key)})
{bool isValidKey(Object key)})
: _canonicalize = canonicalize,
_isValidKeyFn = isValidKey {
addAll(other);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: collection
version: 1.1.0
version: 1.1.1
author: Dart Team <misc@dartlang.org>
description: Collections and utilities functions and classes related to collections.
homepage: https://www.github.com/dart-lang/collection
Expand Down

0 comments on commit 4d71c7e

Please sign in to comment.