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

Unified Diff: runtime/lib/growable_array.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: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 5759178e8609c68362b633b77af9dbea899808bf..2d8a6c7c1b1a5c529ce6efe3a1193a97c65b7d9e 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -226,13 +226,13 @@ class _GrowableObjectArray<T> implements List<T> {
StringBuffer buffer = new StringBuffer();
if (separator == null || separator == "") {
for (int i = 0; i < this.length; i++) {
- buffer.add("${this[i]}");
+ buffer.write("${this[i]}");
}
} else {
- buffer.add("${this[0]}");
+ buffer.write("${this[0]}");
for (int i = 1; i < this.length; i++) {
- buffer.add(separator);
- buffer.add("${this[i]}");
+ buffer.write(separator);
+ buffer.write("${this[i]}");
}
}
return buffer.toString();

Powered by Google App Engine
This is Rietveld 408576698