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

Unified Diff: lib/coreimpl/string_buffer.dart

Issue 11227027: Revert 13878 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « lib/coreimpl/stopwatch_implementation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/string_buffer.dart
===================================================================
--- lib/coreimpl/string_buffer.dart (revision 13885)
+++ lib/coreimpl/string_buffer.dart (working copy)
@@ -24,7 +24,7 @@
}
bool isEmpty() {
- return _length == 0;
+ return _length === 0;
}
/**
@@ -32,7 +32,7 @@
*/
StringBuffer add(Object obj) {
String str = obj.toString();
- if (str == null || str.isEmpty()) {
+ if (str === null || str.isEmpty()) {
return this;
}
_buffer.add(str);
@@ -71,8 +71,8 @@
* 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 = StringImplementation.concatAll(_buffer);
_buffer.clear();
_buffer.add(result);
« no previous file with comments | « lib/coreimpl/stopwatch_implementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698