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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.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/link_implementation.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart b/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
index d00ec867586395ad4507ffdbe7712043963ad2b4..2f9ea8414d63179db530781e952811e3671e5790 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
@@ -36,19 +36,19 @@ class LinkEntry<T> extends Link<T> {
}
void printOn(StringBuffer buffer, [separatedBy]) {
- buffer.add(head);
+ buffer.write(head);
if (separatedBy == null) separatedBy = '';
for (Link link = tail; !link.isEmpty; link = link.tail) {
- buffer.add(separatedBy);
- buffer.add(link.head);
+ buffer.write(separatedBy);
+ buffer.write(link.head);
}
}
String toString() {
StringBuffer buffer = new StringBuffer();
- buffer.add('[ ');
+ buffer.write('[ ');
printOn(buffer, ', ');
- buffer.add(' ]');
+ buffer.write(' ]');
return buffer.toString();
}

Powered by Google App Engine
This is Rietveld 408576698