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

Unified Diff: sdk/lib/io/string_stream.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/io/stream_util.dart ('k') | sdk/lib/io/timer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/string_stream.dart
diff --git a/sdk/lib/io/string_stream.dart b/sdk/lib/io/string_stream.dart
index 8f99c66272eb69f6394c0fc7d551a41656bfc2f4..c16815327dba39d7f330498dd09b29db38ee91b9 100644
--- a/sdk/lib/io/string_stream.dart
+++ b/sdk/lib/io/string_stream.dart
@@ -424,10 +424,10 @@ class _StringInputStream implements StringInputStream {
void _onData() {
_readData();
- if (!_decoder.isEmpty && _clientDataHandler !== null) {
+ if (!_decoder.isEmpty && _clientDataHandler != null) {
_clientDataHandler();
}
- if (_decoder.lineBreaks > 0 && _clientLineHandler !== null) {
+ if (_decoder.lineBreaks > 0 && _clientLineHandler != null) {
_clientLineHandler();
}
_checkScheduleCallback();
@@ -445,23 +445,23 @@ class _StringInputStream implements StringInputStream {
void _readData() {
List<int> data = _input.read();
- if (data !== null) {
+ if (data != null) {
_decoder.write(data);
}
}
void _checkInstallDataHandler() {
if (_inputClosed ||
- (_clientDataHandler === null && _clientLineHandler === null)) {
+ (_clientDataHandler == null && _clientLineHandler == null)) {
_input.onData = null;
- } else if (_clientDataHandler !== null) {
+ } else if (_clientDataHandler != null) {
if (_decoder.isEmpty) {
_input.onData = _onData;
} else {
_input.onData = null;
}
} else {
- assert(_clientLineHandler !== null);
+ assert(_clientLineHandler != null);
if (_decoder.lineBreaks == 0) {
_input.onData = _onData;
} else {
@@ -475,7 +475,7 @@ class _StringInputStream implements StringInputStream {
void _checkScheduleCallback() {
void issueDataCallback(Timer timer) {
_scheduledDataCallback = null;
- if (_clientDataHandler !== null) {
+ if (_clientDataHandler != null) {
_clientDataHandler();
_checkScheduleCallback();
}
@@ -483,7 +483,7 @@ class _StringInputStream implements StringInputStream {
void issueLineCallback(Timer timer) {
_scheduledLineCallback = null;
- if (_clientLineHandler !== null) {
+ if (_clientLineHandler != null) {
_clientLineHandler();
_checkScheduleCallback();
}
@@ -492,7 +492,7 @@ class _StringInputStream implements StringInputStream {
void issueCloseCallback(Timer timer) {
_scheduledCloseCallback = null;
if (!_closed) {
- if (_clientCloseHandler !== null) _clientCloseHandler();
+ if (_clientCloseHandler != null) _clientCloseHandler();
_closed = true;
}
}
« no previous file with comments | « sdk/lib/io/stream_util.dart ('k') | sdk/lib/io/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698