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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1489,4 +1489,6 @@ class RedirectException implements HttpException {
|
||||
List<RedirectInfo> this.redirects);
|
||||
|
||||
String toString() => "RedirectException: $message";
|
||||
|
||||
Uri get uri => redirects.last.location;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user