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

Unified Diff: tests/lib_strong/convert/chunked_conversion_utf83_test.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix Created 3 years, 5 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: tests/lib_strong/convert/chunked_conversion_utf83_test.dart
diff --git a/tests/lib_strong/convert/chunked_conversion_utf83_test.dart b/tests/lib_strong/convert/chunked_conversion_utf83_test.dart
index dc2ced905b79cb0c36cfc360c277d6bf08159d03..a8818a2cf013c514c33e0a128b92875451cd79da 100644
--- a/tests/lib_strong/convert/chunked_conversion_utf83_test.dart
+++ b/tests/lib_strong/convert/chunked_conversion_utf83_test.dart
@@ -15,7 +15,7 @@ String decode(List<int> bytes, int chunkSize) {
var byteSink = new Utf8Decoder().startChunkedConversion(stringSink);
int i = 0;
while (i < bytes.length) {
- List nextChunk = [];
+ var nextChunk = <int>[];
for (int j = 0; j < chunkSize; j++) {
if (i < bytes.length) {
nextChunk.add(bytes[i]);
@@ -35,7 +35,7 @@ String decodeAllowMalformed(List<int> bytes, int chunkSize) {
var byteSink = decoder.startChunkedConversion(stringSink);
int i = 0;
while (i < bytes.length) {
- List nextChunk = [];
+ var nextChunk = <int>[];
for (int j = 0; j < chunkSize; j++) {
if (i < bytes.length) {
nextChunk.add(bytes[i]);

Powered by Google App Engine
This is Rietveld 408576698