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

Unified Diff: sdk/lib/core/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/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index c6e09a15e6491de84c30d311269f7937a5e91f4d..8b276c076080bd7e208c3e8de1f21ea7ab287ec3 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -133,13 +133,13 @@ abstract class Iterable<E> {
StringBuffer buffer = new StringBuffer();
if (separator == null || separator == "") {
do {
- buffer.add("${iterator.current}");
+ buffer.write("${iterator.current}");
} while (iterator.moveNext());
} else {
- buffer.add("${iterator.current}");
+ buffer.write("${iterator.current}");
while (iterator.moveNext()) {
- buffer.add(separator);
- buffer.add("${iterator.current}");
+ buffer.write(separator);
+ buffer.write("${iterator.current}");
}
}
return buffer.toString();

Powered by Google App Engine
This is Rietveld 408576698