Repository: incubator-livy Updated Branches: refs/heads/master 26d69a496 -> c591fcce6
LIVY-363. Method toURL in Utils.scala is deprecated [https://issues.cloudera.org/browse/LIVY-363](https://issues.cloudera.org/browse/LIVY-363) Method toURL in Utils.scala is deprecated. The toURL() method of File does not properly escape characters that aren't valid in a URL. Author: davidxdh <xu.dong...@zte.com.cn> Closes #9 from davidxdh/dev363. Project: http://git-wip-us.apache.org/repos/asf/incubator-livy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-livy/commit/c591fcce Tree: http://git-wip-us.apache.org/repos/asf/incubator-livy/tree/c591fcce Diff: http://git-wip-us.apache.org/repos/asf/incubator-livy/diff/c591fcce Branch: refs/heads/master Commit: c591fcce6ee9556d9bb60f27de1e6162aa4ee024 Parents: 26d69a4 Author: davidxdh <xu.dong...@zte.com.cn> Authored: Mon Jul 3 15:00:09 2017 +0800 Committer: jerryshao <ss...@hortonworks.com> Committed: Mon Jul 3 15:00:09 2017 +0800 ---------------------------------------------------------------------- core/src/main/scala/com/cloudera/livy/Utils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/c591fcce/core/src/main/scala/com/cloudera/livy/Utils.scala ---------------------------------------------------------------------- diff --git a/core/src/main/scala/com/cloudera/livy/Utils.scala b/core/src/main/scala/com/cloudera/livy/Utils.scala index 1886bc2..308f4d2 100644 --- a/core/src/main/scala/com/cloudera/livy/Utils.scala +++ b/core/src/main/scala/com/cloudera/livy/Utils.scala @@ -30,7 +30,7 @@ import scala.concurrent.duration.Duration object Utils { def getPropertiesFromFile(file: File): Map[String, String] = { - loadProperties(file.toURL()) + loadProperties(file.toURI().toURL()) } def loadProperties(url: URL): Map[String, String] = {