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

Unified Diff: sdk/lib/_collection_dev/iterable.dart

Issue 107333003: Fix an old TODO. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
« no previous file with comments | « sdk/lib/_collection_dev/collection_dev_sources.gypi ('k') | sdk/lib/_collection_dev/lists.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_collection_dev/iterable.dart
===================================================================
--- sdk/lib/_collection_dev/iterable.dart (revision 31056)
+++ sdk/lib/_collection_dev/iterable.dart (working copy)
@@ -1016,12 +1016,12 @@
}
static int indexOfList(List list, var element, int start) {
- return Arrays.indexOf(list, element, start, list.length);
+ return Lists.indexOf(list, element, start, list.length);
}
static int lastIndexOfList(List list, var element, int start) {
if (start == null) start = list.length - 1;
- return Arrays.lastIndexOf(list, element, start);
+ return Lists.lastIndexOf(list, element, start);
}
static void _rangeCheck(List list, int start, int end) {
@@ -1060,7 +1060,7 @@
if (otherStart + length > otherList.length) {
throw new StateError("Not enough elements");
}
- Arrays.copy(otherList, otherStart, list, start, length);
+ Lists.copy(otherList, otherStart, list, start, length);
}
static void replaceRangeList(List list, int start, int end,
« no previous file with comments | « sdk/lib/_collection_dev/collection_dev_sources.gypi ('k') | sdk/lib/_collection_dev/lists.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698