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

Unified Diff: sdk/lib/convert/string_conversion.dart

Issue 23445016: Small changes to make analyzer happy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/collection/linked_list.dart ('k') | sdk/lib/core/bool.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/string_conversion.dart
diff --git a/sdk/lib/convert/string_conversion.dart b/sdk/lib/convert/string_conversion.dart
index 4a90cfaf37d92f16da2c37690385aa4e1546b266..a10b616ad02aa21e3bec5f7fe211a3fddf3eccf0 100644
--- a/sdk/lib/convert/string_conversion.dart
+++ b/sdk/lib/convert/string_conversion.dart
@@ -92,8 +92,8 @@ class _ClosableStringSink implements ClosableStringSink {
void writeCharCode(int charCode) => _sink.writeCharCode(charCode);
void write(Object o) => _sink.write(o);
- void writeln([Object o]) => _sink.writeln(o);
- void writeAll(Iterable objects, [String separator])
+ void writeln([Object o = ""]) => _sink.writeln(o);
+ void writeAll(Iterable objects, [String separator = ""])
=> _sink.writeAll(objects, separator);
}
@@ -128,12 +128,12 @@ class _StringConversionSinkAsStringSinkAdapter implements ClosableStringSink {
_chunkedSink.add(o.toString());
}
- void writeln([Object o]) {
+ void writeln([Object o = ""]) {
_buffer.writeln(o);
if (_buffer.length > _MIN_STRING_SIZE) _flush();
}
- void writeAll(Iterable objects, [String separator]) {
+ void writeAll(Iterable objects, [String separator = ""]) {
if (_buffer.isNotEmpty) _flush();
Iterator iterator = objects.iterator;
if (!iterator.moveNext()) return;
« no previous file with comments | « sdk/lib/collection/linked_list.dart ('k') | sdk/lib/core/bool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698