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

Unified Diff: sdk/lib/core/string_buffer.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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/core/stopwatch.dart ('k') | sdk/lib/crypto/crypto_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/string_buffer.dart
diff --git a/sdk/lib/core/string_buffer.dart b/sdk/lib/core/string_buffer.dart
index 0433d9fd429ea4427c045b218c5d654f13ce9d42..78230a0db6f9e1ff35086c7ed250a2dbe5cf2024 100644
--- a/sdk/lib/core/string_buffer.dart
+++ b/sdk/lib/core/string_buffer.dart
@@ -68,7 +68,7 @@ class _StringBufferImpl implements StringBuffer {
}
bool get isEmpty {
- return _length === 0;
+ return _length == 0;
}
/**
@@ -76,7 +76,7 @@ class _StringBufferImpl implements StringBuffer {
*/
StringBuffer add(Object obj) {
String str = obj.toString();
- if (str === null || str.isEmpty) {
+ if (str == null || str.isEmpty) {
return this;
}
_buffer.add(str);
@@ -115,8 +115,8 @@ class _StringBufferImpl implements StringBuffer {
* Returns the contents of buffer as a concatenated string.
*/
String toString() {
- if (_buffer.length === 0) return "";
- if (_buffer.length === 1) return _buffer[0];
+ if (_buffer.length == 0) return "";
+ if (_buffer.length == 1) return _buffer[0];
String result = Strings.concatAll(_buffer);
_buffer.clear();
_buffer.add(result);
« no previous file with comments | « sdk/lib/core/stopwatch.dart ('k') | sdk/lib/crypto/crypto_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698