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

Unified Diff: sdk/lib/io/crypto.dart

Issue 1974043002: Revert "Fix remaining strong-mode warnings and errors in dart:io." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « sdk/lib/io/common.dart ('k') | sdk/lib/io/data_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/crypto.dart
diff --git a/sdk/lib/io/crypto.dart b/sdk/lib/io/crypto.dart
index 96e4bd14f837b939f9ed0b9ea68f7b01f3224e8a..82cff5e5721282d7545afd5cc0053b9a5e8efb88 100644
--- a/sdk/lib/io/crypto.dart
+++ b/sdk/lib/io/crypto.dart
@@ -234,8 +234,8 @@ abstract class _HashBase {
// Compute the final result as a list of bytes from the hash words.
- List<int> _resultAsBytes() {
- var result = <int>[];
+ _resultAsBytes() {
+ var result = [];
for (var i = 0; i < _h.length; i++) {
result.addAll(_wordToBytes(_h[i]));
}
@@ -261,7 +261,7 @@ abstract class _HashBase {
}
// Convert a 32-bit word to four bytes.
- List<int> _wordToBytes(int word) {
+ _wordToBytes(int word) {
List<int> bytes = new List(_BYTES_PER_WORD);
bytes[0] = (word >> (_bigEndianWords ? 24 : 0)) & _MASK_8;
bytes[1] = (word >> (_bigEndianWords ? 16 : 8)) & _MASK_8;
« no previous file with comments | « sdk/lib/io/common.dart ('k') | sdk/lib/io/data_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698