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

Unified Diff: tests/language/string_interpolation_and_buffer.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: tests/language/string_interpolation_and_buffer.dart
diff --git a/tests/language/string_interpolation_and_buffer.dart b/tests/language/string_interpolation_and_buffer.dart
index 1ce359dc30b0f4bde01100f52cb78ce7cd6a4499..ddcdd4eeef6aa645504b04afcda847e2436ee8c7 100644
--- a/tests/language/string_interpolation_and_buffer.dart
+++ b/tests/language/string_interpolation_and_buffer.dart
@@ -41,13 +41,13 @@ main() {
var sb;
if (checkedMode && object != null) {
try {
- sb = new StringBuffer().add(wrap(object));
+ sb = new StringBuffer()..write(wrap(object));
} on TypeError {
return 'Error';
}
} else {
try {
- sb = new StringBuffer().add(wrap(object));
+ sb = new StringBuffer()..write(wrap(object));
} on ArgumentError {
return 'Error';
}

Powered by Google App Engine
This is Rietveld 408576698