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

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

Issue 12475004: Add dart analyzer test suite 'analyze_library' that fails if we (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
« no previous file with comments | « samples/tests/dartc/test_config.dart ('k') | sdk/lib/json/json_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/crypto/crypto_utils.dart
diff --git a/sdk/lib/crypto/crypto_utils.dart b/sdk/lib/crypto/crypto_utils.dart
index 32096f155faeb139b6aff7424498baf5349d477b..466ec4590b292cdf622f13a3acec72a343f011fb 100644
--- a/sdk/lib/crypto/crypto_utils.dart
+++ b/sdk/lib/crypto/crypto_utils.dart
@@ -9,10 +9,10 @@ class _LineWrappingStringBuffer {
void add(String s) {
if (_lineLength != null && _currentLineLength == _lineLength) {
- _sb.add('\r\n');
+ _sb.write('\r\n');
_currentLineLength = 0;
}
- _sb.add(s);
+ _sb.write(s);
_currentLineLength++;
}
@@ -27,7 +27,7 @@ abstract class _CryptoUtils {
static String bytesToHex(List<int> bytes) {
var result = new StringBuffer();
for (var part in bytes) {
- result.add('${part < 16 ? '0' : ''}${part.toRadixString(16)}');
+ result.write('${part < 16 ? '0' : ''}${part.toRadixString(16)}');
}
return result.toString();
}
« no previous file with comments | « samples/tests/dartc/test_config.dart ('k') | sdk/lib/json/json_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698