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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/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: Final cleanup Created 7 years, 7 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
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
index b5ac6d99f44ea32ef05af5e6c985768f7733ee17..f818d57ca1ab7a56b4bdc46814b340adb88650e0 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/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
This is Rietveld 408576698