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

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: 80chars. 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
Index: sdk/lib/core/string_buffer.dart
diff --git a/sdk/lib/core/string_buffer.dart b/sdk/lib/core/string_buffer.dart
index 0561d83c217eaca346d937d0aab0d5aa038d3a44..0b91e96332d1dedf4f4c30cac0138335ebe01cc5 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 = _StringImpl.concatAll(_buffer);
_buffer.clear();
_buffer.add(result);

Powered by Google App Engine
This is Rietveld 408576698