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

Unified Diff: pkg/utf/lib/src/utf/utf_stream.dart

Issue 879813002: Tweak a couple of method signatures for unittest methods so that they are more consistent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | « pkg/utf/lib/src/list_range.dart ('k') | pkg/utf/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/utf/lib/src/utf/utf_stream.dart
diff --git a/pkg/utf/lib/src/utf/utf_stream.dart b/pkg/utf/lib/src/utf/utf_stream.dart
index 2b460d01e9123e55336aa078e0dc5c8537a7eb70..0936616e728c4d31dcb453fd0b8f9f3708cdb610 100644
--- a/pkg/utf/lib/src/utf/utf_stream.dart
+++ b/pkg/utf/lib/src/utf/utf_stream.dart
@@ -78,7 +78,7 @@ abstract class _StringDecoder
}
}
- void addError(Object error, [StackTrace stackTrace]) {
+ void addError(error, [StackTrace stackTrace]) {
_outSink.addError(error, stackTrace);
}
@@ -189,7 +189,7 @@ abstract class _StringEncoder
_outSink.add(_processString(data));
}
- void addError(Object error, [StackTrace stackTrace]) {
+ void addError(error, [StackTrace stackTrace]) {
_outSink.addError(error, stackTrace);
}
@@ -203,7 +203,7 @@ abstract class _StringEncoder
*/
class Utf8EncoderTransformer extends _StringEncoder {
List<int> _processString(String string) {
- var bytes = [];
+ var bytes = <int>[];
int pos = 0;
List<int> codepoints = utf16CodeUnitsToCodepoints(string.codeUnits);
int length = codepoints.length;
« no previous file with comments | « pkg/utf/lib/src/list_range.dart ('k') | pkg/utf/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698