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

Unified Diff: lib/src/queue_list.dart

Issue 1831103004: Fix strong mode warnings. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: pubspec/changelog Created 4 years, 9 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: lib/src/queue_list.dart
diff --git a/lib/src/queue_list.dart b/lib/src/queue_list.dart
index a12f0b40545bedbf18e91103865a9f85ae4912cb..bf75f339107dab0df4b8209c62f4b229093c1932 100644
--- a/lib/src/queue_list.dart
+++ b/lib/src/queue_list.dart
@@ -35,7 +35,7 @@ class QueueList<E> extends Object with ListMixin<E> implements Queue<E> {
int length = source.length;
QueueList<E> queue = new QueueList(length + 1);
assert(queue._table.length > length);
- List sourceList = source;
+ var sourceList = source;
queue._table.setRange(0, length, sourceList, 0);
queue._tail = length;
return queue;
@@ -52,7 +52,7 @@ class QueueList<E> extends Object with ListMixin<E> implements Queue<E> {
void addAll(Iterable<E> elements) {
if (elements is List) {
- List list = elements;
+ var list = elements;
int addCount = list.length;
int length = this.length;
if (length + addCount >= _table.length) {

Powered by Google App Engine
This is Rietveld 408576698