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

Unified Diff: runtime/lib/array.dart

Issue 11906002: Let list-classes call Collections.joinList (which avoids allocating an iterator). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index f5e8ec33ffe34cd8158c294d7a3511cf839261b6..fb9f3582c61b1bc7f7f0cb05f09381cc0bb0924e 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -70,7 +70,7 @@ class _ObjectArray<E> implements List<E> {
}
String join([String separator]) {
- return Collections.join(this, separator);
+ return Collections.joinList(this, separator);
}
List mappedBy(f(E element)) {
@@ -278,7 +278,7 @@ class _ImmutableArray<E> implements List<E> {
}
String join([String separator]) {
- return Collections.join(this, separator);
+ return Collections.joinList(this, separator);
}
reduce(initialValue, combine(previousValue, E element)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698