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

Unified Diff: pkg/intl/lib/src/date_format_helpers.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 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: pkg/intl/lib/src/date_format_helpers.dart
diff --git a/pkg/intl/lib/src/date_format_helpers.dart b/pkg/intl/lib/src/date_format_helpers.dart
index a10b27462c71eb46b378e6af587da0623f967fee..253a4e61f2dc31824aa1781e3fdd77e3ae114d67 100644
--- a/pkg/intl/lib/src/date_format_helpers.dart
+++ b/pkg/intl/lib/src/date_format_helpers.dart
@@ -98,7 +98,7 @@ class _Stream {
min(index + howMany, contents.length));
} else {
// Assume List
- result = contents.getRange(index, howMany);
+ result = contents.sublist(index, index + howMany);
}
return result;
}

Powered by Google App Engine
This is Rietveld 408576698