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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index ec195558662c0289ab5fd67c4319c8522a91f31e..5741417947238fc934bc7cd3dc32acc44930373a 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -625,7 +625,7 @@ class IsolatedServer {
class Rate {
Rate([int timeRange = 1000, int buckets = 10])
: _timeRange = timeRange,
- _buckets = new List.fixedLength(buckets + 1), // Current bucket is not in the sum.
+ _buckets = new List(buckets + 1), // Current bucket is not in the sum.
_currentBucket = 0,
_currentBucketTime = new DateTime.now().millisecondsSinceEpoch,
_sum = 0 {

Powered by Google App Engine
This is Rietveld 408576698