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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart

Issue 12294028: Fix warnings spotted by dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
Index: dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart b/dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart
index fed5f154cbcda33b267e31929e8254231f205e87..f43e8261bb6e0811957ec06cb42ba42db4a8f5bf 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/util/uri_extras.dart
@@ -53,12 +53,12 @@ String relativize(Uri base, Uri uri, bool isWindows) {
}
StringBuffer sb = new StringBuffer();
for (int i = common + 1; i < baseParts.length; i++) {
- sb.add('../');
+ sb.write('../');
}
for (int i = common; i < uriParts.length - 1; i++) {
- sb.add('${uriParts[i]}/');
+ sb.write('${uriParts[i]}/');
}
- sb.add('${uriParts.last}');
+ sb.write('${uriParts.last}');
return sb.toString();
}
return uri.toString();
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart ('k') | dart/tests/utils/utils.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698