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

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

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: sdk/lib/_collection_dev/iterable.dart
diff --git a/sdk/lib/_collection_dev/iterable.dart b/sdk/lib/_collection_dev/iterable.dart
index daad6af71c16d79ce09de411b11009973c7384a6..0ae6c67664eb48fe57b1951fdeca96329ac40c32 100644
--- a/sdk/lib/_collection_dev/iterable.dart
+++ b/sdk/lib/_collection_dev/iterable.dart
@@ -176,8 +176,8 @@ abstract class ListIterable<E> extends Iterable<E> {
}
StringBuffer buffer = new StringBuffer(first);
for (int i = 1; i < length; i++) {
- buffer.add(separator);
- buffer.add("${elementAt(i)}");
+ buffer.write(separator);
+ buffer.write("${elementAt(i)}");
if (length != this.length) {
throw new ConcurrentModificationError(this);
}
@@ -186,7 +186,7 @@ abstract class ListIterable<E> extends Iterable<E> {
} else {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < length; i++) {
- buffer.add("${elementAt(i)}");
+ buffer.write("${elementAt(i)}");
if (length != this.length) {
throw new ConcurrentModificationError(this);
}

Powered by Google App Engine
This is Rietveld 408576698