summaryrefslogtreecommitdiffstats
path: root/sched/src/com/android/sched
diff options
context:
space:
mode:
authormikaelpeltier <mikaelpeltier@google.com>2015-03-12 10:13:25 +0100
committermikaelpeltier <mikaelpeltier@google.com>2015-03-12 10:13:25 +0100
commita94017d9c6fcb74466e0f91626d7495e187c3849 (patch)
tree3935670c4252798e21b495f74e3301ef95387ed0 /sched/src/com/android/sched
parentb7c37a56dc717023a4646072ca98649856cdf577 (diff)
downloadtoolchain_jack-a94017d9c6fcb74466e0f91626d7495e187c3849.tar.gz
toolchain_jack-a94017d9c6fcb74466e0f91626d7495e187c3849.tar.bz2
toolchain_jack-a94017d9c6fcb74466e0f91626d7495e187c3849.zip
Use file into getPath implementation rather than location
Change-Id: I1991cf5840480ce6649ab85c049d2e7fa733f17b
Diffstat (limited to 'sched/src/com/android/sched')
-rw-r--r--sched/src/com/android/sched/util/file/AbstractStreamFile.java3
-rw-r--r--sched/src/com/android/sched/util/file/Directory.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/sched/src/com/android/sched/util/file/AbstractStreamFile.java b/sched/src/com/android/sched/util/file/AbstractStreamFile.java
index 6bd4b942..55d257a4 100644
--- a/sched/src/com/android/sched/util/file/AbstractStreamFile.java
+++ b/sched/src/com/android/sched/util/file/AbstractStreamFile.java
@@ -136,6 +136,7 @@ public abstract class AbstractStreamFile extends FileOrDirectory {
@Override
@Nonnull
public String getPath() {
- return ((FileLocation) location).getPath();
+ assert file != null;
+ return file.getPath();
}
} \ No newline at end of file
diff --git a/sched/src/com/android/sched/util/file/Directory.java b/sched/src/com/android/sched/util/file/Directory.java
index 2d7f3ae5..0ea2f601 100644
--- a/sched/src/com/android/sched/util/file/Directory.java
+++ b/sched/src/com/android/sched/util/file/Directory.java
@@ -125,6 +125,6 @@ public class Directory extends FileOrDirectory {
@Override
@Nonnull
public String getPath() {
- return ((DirectoryLocation) location).getPath();
+ return file.getPath();
}
} \ No newline at end of file