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

Unified Diff: sdk/lib/io/socket.dart

Issue 12425004: Fix deprecation warnings in dart:io. Now completely warning free. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « sdk/lib/io/mime_multipart_parser.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index aa05fdcbf48bb65123d3a59c20f101198ce3cbaa..3424fed03a5b345752acaa4793a879744815d9f0 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -216,14 +216,14 @@ class SocketIOException implements Exception {
OSError this.osError = null]);
String toString() {
StringBuffer sb = new StringBuffer();
- sb.add("SocketIOException");
+ sb.write("SocketIOException");
if (!message.isEmpty) {
- sb.add(": $message");
+ sb.write(": $message");
if (osError != null) {
- sb.add(" ($osError)");
+ sb.write(" ($osError)");
}
} else if (osError != null) {
- sb.add(": $osError");
+ sb.write(": $osError");
}
return sb.toString();
}
« no previous file with comments | « sdk/lib/io/mime_multipart_parser.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698