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

Unified Diff: sdk/lib/io/mime_multipart_parser.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: sdk/lib/io/mime_multipart_parser.dart
diff --git a/sdk/lib/io/mime_multipart_parser.dart b/sdk/lib/io/mime_multipart_parser.dart
index a4ba3c0f9221428071960cdc21c218a881c57efc..51f6b7f6a0ae8df397b20c2b2f4eeacad4f413aa 100644
--- a/sdk/lib/io/mime_multipart_parser.dart
+++ b/sdk/lib/io/mime_multipart_parser.dart
@@ -42,7 +42,7 @@ class _MimeMultipartParser {
// type parameter, that is without the -- prefix.
_MimeMultipartParser(String boundary) {
List<int> charCodes = boundary.codeUnits;
- _boundary = new List<int>.fixedLength(4 + charCodes.length);
+ _boundary = new List<int>(4 + charCodes.length);
// Set-up the matching boundary preceding it with CRLF and two
// dashes.
_boundary[0] = _CharCode.CR;

Powered by Google App Engine
This is Rietveld 408576698