Repository: incubator-twill Updated Branches: refs/heads/site f66dab556 -> c7c3f774c
Overriding toString() in FileContextLocation This closes #79 on GitHub Signed-off-by: Terence Yim <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-twill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-twill/commit/c71f7c59 Tree: http://git-wip-us.apache.org/repos/asf/incubator-twill/tree/c71f7c59 Diff: http://git-wip-us.apache.org/repos/asf/incubator-twill/diff/c71f7c59 Branch: refs/heads/site Commit: c71f7c599d0eed9128bf11f5888567c6be26f714 Parents: 180e446 Author: CuriousVini <[email protected]> Authored: Tue Apr 19 15:39:14 2016 -0700 Committer: Terence Yim <[email protected]> Committed: Tue Apr 19 16:34:18 2016 -0700 ---------------------------------------------------------------------- .../java/org/apache/twill/filesystem/FileContextLocation.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-twill/blob/c71f7c59/twill-yarn/src/main/java/org/apache/twill/filesystem/FileContextLocation.java ---------------------------------------------------------------------- diff --git a/twill-yarn/src/main/java/org/apache/twill/filesystem/FileContextLocation.java b/twill-yarn/src/main/java/org/apache/twill/filesystem/FileContextLocation.java index f92954e..85698d0 100644 --- a/twill-yarn/src/main/java/org/apache/twill/filesystem/FileContextLocation.java +++ b/twill-yarn/src/main/java/org/apache/twill/filesystem/FileContextLocation.java @@ -216,4 +216,9 @@ final class FileContextLocation implements Location { public int hashCode() { return Objects.hash(path); } + + @Override + public String toString() { + return toURI().toString(); + } }
