diff options
author | Miles Sabin <miles@milessabin.com> | 2009-11-17 09:04:00 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-11-17 09:04:00 +0000 |
commit | 9aafbff378c3721cdc98ce3e9266950c3f443770 (patch) | |
tree | 7bdbe6676be943b621c679a0fd775194795b1725 /src/compiler | |
parent | f34abbc0004cfa21c5f6e0d856f399f80828e07c (diff) | |
download | scala-9aafbff378c3721cdc98ce3e9266950c3f443770.tar.gz scala-9aafbff378c3721cdc98ce3e9266950c3f443770.tar.bz2 scala-9aafbff378c3721cdc98ce3e9266950c3f443770.zip |
More String.isEmpty breakage.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/io/Path.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/io/Path.scala b/src/compiler/scala/tools/nsc/io/Path.scala index 8e4c58a35e..df1736f688 100644 --- a/src/compiler/scala/tools/nsc/io/Path.scala +++ b/src/compiler/scala/tools/nsc/io/Path.scala @@ -109,7 +109,7 @@ class Path private[io] (val jfile: JFile) // derived from identity def root: Option[Path] = roots find (this startsWith _) - def segments: List[String] = (path split separator).toList filterNot (_.isEmpty) + def segments: List[String] = (path split separator).toList filterNot (_.length == 0) def parent: Option[Path] = Option(jfile.getParent()) map Path.apply def parents: List[Path] = parent match { case None => Nil |