Fix some analyzer warnings in dart:io.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//22893005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26051 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
whesse@google.com
2013-08-13 14:11:33 +00:00
parent 03a250f445
commit 48cf6c5ebd
4 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ class _Directory implements Directory {
}
Future<Directory> createRecursively() {
var path = new Path(path);
var path = new Path(this.path);
var dirsToCreate = [];
var terminator = path.isAbsolute ? '/' : '';
while (path.toString() != terminator) {
@@ -139,7 +139,7 @@ class _Directory implements Directory {
}
void createRecursivelySync() {
var path = new Path(path);
var path = new Path(this.path);
var dirsToCreate = [];
var terminator = path.isAbsolute ? '/' : '';
while (path.toString() != terminator) {
+1 -1
View File
@@ -346,7 +346,7 @@ class _File implements File {
}
Directory get directory {
Path path = new Path(path).directoryPath;
Path path = new Path(this.path).directoryPath;
return new Directory.fromPath(path);
}
+2
View File
@@ -1489,4 +1489,6 @@ class RedirectException implements HttpException {
List<RedirectInfo> this.redirects);
String toString() => "RedirectException: $message";
Uri get uri => redirects.last.location;
}
+1 -1
View File
@@ -826,7 +826,7 @@ class _WebSocketImpl extends Stream implements WebSocket {
cancelOnError: cancelOnError);
}
Duration get pingnterval => _pingInterval;
Duration get pingInterval => _pingInterval;
void set pingInterval(Duration interval) {
if (_writeClosed) return;