Tweak a couple of method signatures for unittest methods so that they are more consistent.
BUG=
R=kevmoo@google.com
Review URL: https://codereview.chromium.org//879813002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/utf@43345 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/src/list_range.dart b/lib/src/list_range.dart
index 7889796..2f3b34d 100644
--- a/lib/src/list_range.dart
+++ b/lib/src/list_range.dart
@@ -48,9 +48,9 @@
bool moveNext();
int get current;
int get position;
- void backup([by]);
+ void backup([int by]);
int get remaining;
- void skip([count]);
+ void skip([int count]);
}
class _ListRangeIteratorImpl implements ListRangeIterator {
diff --git a/lib/src/utf/utf_stream.dart b/lib/src/utf/utf_stream.dart
index 2b460d0..0936616 100644
--- a/lib/src/utf/utf_stream.dart
+++ b/lib/src/utf/utf_stream.dart
@@ -78,7 +78,7 @@
}
}
- void addError(Object error, [StackTrace stackTrace]) {
+ void addError(error, [StackTrace stackTrace]) {
_outSink.addError(error, stackTrace);
}
@@ -189,7 +189,7 @@
_outSink.add(_processString(data));
}
- void addError(Object error, [StackTrace stackTrace]) {
+ void addError(error, [StackTrace stackTrace]) {
_outSink.addError(error, stackTrace);
}
@@ -203,7 +203,7 @@
*/
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;
diff --git a/pubspec.yaml b/pubspec.yaml
index a3fd334..519bed4 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: utf
-version: 0.9.0+1
+version: 0.9.0+2
author: Dart Team <misc@dartlang.org>
description: >
A Unicode library. Intended for advanced use where the built-in facilities