summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-21 17:44:49 +0000
committerPaul Phillips <paulp@improving.org>2011-05-21 17:44:49 +0000
commite22d7f9915b23fa958f4cfccb9591b214a46c0da (patch)
tree8d7d2f33874d6091f263a05ede473fc0453d135c
parent2a32395ff25386444520c602393fa3d16078344a (diff)
downloadscala-e22d7f9915b23fa958f4cfccb9591b214a46c0da.tar.gz
scala-e22d7f9915b23fa958f4cfccb9591b214a46c0da.tar.bz2
scala-e22d7f9915b23fa958f4cfccb9591b214a46c0da.zip
Eliminating more calls requiring filesystem acc...
Eliminating more calls requiring filesystem access, no review.
-rw-r--r--src/compiler/scala/tools/nsc/io/PlainFile.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/io/PlainFile.scala b/src/compiler/scala/tools/nsc/io/PlainFile.scala
index f35502e9ac..21c4d95d7a 100644
--- a/src/compiler/scala/tools/nsc/io/PlainFile.scala
+++ b/src/compiler/scala/tools/nsc/io/PlainFile.scala
@@ -27,7 +27,7 @@ class PlainFile(val givenPath: Path) extends AbstractFile {
val file = givenPath.jfile
override def underlyingSource = Some(this)
- private val fpath = try givenPath.normalize catch { case _: IOException => givenPath.toAbsolute }
+ private val fpath = givenPath.toAbsolute
/** Returns the name of this abstract file. */
def name = givenPath.name
@@ -36,7 +36,7 @@ class PlainFile(val givenPath: Path) extends AbstractFile {
def path = givenPath.path
/** The absolute file. */
- def absolute = new PlainFile(givenPath.normalize)
+ def absolute = new PlainFile(givenPath.toAbsolute)
override def container: AbstractFile = new PlainFile(givenPath.parent)
override def input = givenPath.toFile.inputStream()