| 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);
|
|
|