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

Unified Diff: sdk/lib/utf/utf_stream.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: sdk/lib/utf/utf_stream.dart
diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart
index 00717b83b0ae7356e36ce510d5ec82aa4016bdf9..1480aa156ab1ff136dcbc75ba63070ed106f6576 100644
--- a/sdk/lib/utf/utf_stream.dart
+++ b/sdk/lib/utf/utf_stream.dart
@@ -52,7 +52,7 @@ abstract class _StringDecoder
_carry.addAll(carry);
_carry.addAll(bytes);
} else {
- _carry = bytes.getRange(currentPos, bytes.length - currentPos);
+ _carry = bytes.sublist(currentPos);
}
break;
} else {

Powered by Google App Engine
This is Rietveld 408576698