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

Unified Diff: sdk/lib/io/common.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/base64.dart ('k') | sdk/lib/io/directory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/common.dart
diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart
index 3f8c5503bebe7dc32c3b488c05039f98f83f6422..38fa76da9d0670d0fbdaab0b55d1706512b77fc8 100644
--- a/sdk/lib/io/common.dart
+++ b/sdk/lib/io/common.dart
@@ -28,17 +28,17 @@ class OSError {
/** Converts an OSError object to a string representation. */
String toString() {
StringBuffer sb = new StringBuffer();
- sb.add("OS Error");
+ sb.write("OS Error");
if (!message.isEmpty) {
- sb.add(": ");
- sb.add(message);
+ sb.write(": ");
+ sb.write(message);
if (errorCode != noErrorCode) {
- sb.add(", errno = ");
- sb.add(errorCode.toString());
+ sb.write(", errno = ");
+ sb.write(errorCode.toString());
}
} else if (errorCode != noErrorCode) {
- sb.add(": errno = ");
- sb.add(errorCode.toString());
+ sb.write(": errno = ");
+ sb.write(errorCode.toString());
}
return sb.toString();
}
« no previous file with comments | « sdk/lib/io/base64.dart ('k') | sdk/lib/io/directory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698