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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 7799d49811be3cb841ae513cf90f2c472cc10ca5..b1cced892d9acb4804c7f3383c62d6307ccda5d1 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
@@ -63,7 +63,11 @@ class JavaFile {
this._path = new Path(path);
}
JavaFile.relative(JavaFile base, String child) {
- this._path = base._path.join(new Path(child));
+ if (child.isEmpty) {
+ this._path = base._path;
+ } else {
+ this._path = base._path.join(new Path(child));
+ }
}
JavaFile.fromUri(Uri uri) : this(uri.path);
int get hashCode => _path.hashCode;

Powered by Google App Engine
This is Rietveld 408576698