Chromium Code Reviews

Unified Diff: pkg/analyzer_experimental/lib/src/generated/java_io.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing files Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: pkg/analyzer_experimental/lib/src/generated/java_io.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/java_io.dart b/pkg/analyzer_experimental/lib/src/generated/java_io.dart
index b5ac6d99f44ea32ef05af5e6c985768f7733ee17..f818d57ca1ab7a56b4bdc46814b340adb88650e0 100644
--- a/pkg/analyzer_experimental/lib/src/generated/java_io.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/java_io.dart
@@ -1,7 +1,6 @@
library java.io;
import "dart:io";
-import "dart:uri";
class JavaSystemIO {
static Map<String, String> _properties = new Map();
@@ -84,7 +83,7 @@ class JavaFile {
bool isDirectory() {
return _newDirectory().existsSync();
}
- Uri toURI() => new Uri.fromComponents(path: _path.toString());
+ Uri toURI() => new Uri(path: _path.toString());
String readAsStringSync() => _newFile().readAsStringSync();
int lastModified() => _newFile().lastModifiedSync().millisecondsSinceEpoch;
File _newFile() => new File.fromPath(_path);

Powered by Google App Engine