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

Unified Diff: samples/chat/chat_stress_client.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: samples/chat/chat_stress_client.dart
diff --git a/samples/chat/chat_stress_client.dart b/samples/chat/chat_stress_client.dart
index 12555ec10ea7f4c8562d102536f624c723d4befa..b5dc325dc6ba6694ffca2508e7a807ef9863c287 100644
--- a/samples/chat/chat_stress_client.dart
+++ b/samples/chat/chat_stress_client.dart
@@ -58,7 +58,7 @@ class ChatStressClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => leaveResponseHandler(response, body.toString()));
});
}
@@ -86,7 +86,7 @@ class ChatStressClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => receiveResponseHandler(response, body.toString()));
});
}
@@ -121,7 +121,7 @@ class ChatStressClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => sendResponseHandler(response, body.toString()));
});
};
@@ -149,7 +149,7 @@ class ChatStressClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => joinResponseHandler(response, body.toString()));
});
}

Powered by Google App Engine
This is Rietveld 408576698