diff options
author | Paul Phillips <paulp@improving.org> | 2010-05-22 19:19:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-05-22 19:19:17 +0000 |
commit | 6043ad6f8fbaa172da4da8dd32966a4997c9885e (patch) | |
tree | dedae5a780b26d173dc7e893dcf93587e78ca28c /src/compiler | |
parent | 43cc66eefd3a6915bb149b9a97156a248983d12e (diff) | |
download | scala-6043ad6f8fbaa172da4da8dd32966a4997c9885e.tar.gz scala-6043ad6f8fbaa172da4da8dd32966a4997c9885e.tar.bz2 scala-6043ad6f8fbaa172da4da8dd32966a4997c9885e.zip |
It's clearly not a long term solution to go hun...
It's clearly not a long term solution to go hunting them one by one,
but for the short term goal of shipping 2.8.0 without accidental java 6
dependencies, removed what should be all uses of String.isEmpty from the
source. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index cc640d5c54..4994542fdb 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -246,7 +246,7 @@ abstract class ClassPath[T] { /** Filters for assessing validity of various entities. */ def validClassFile(name: String) = (name endsWith ".class") && context.isValidName(name) - def validPackage(name: String) = (name != "META-INF") && (name != "") && (name.head != '.') + def validPackage(name: String) = (name != "META-INF") && (name != "") && (name(0) != '.') def validSourceFile(name: String) = validSourceExtensions exists (name endsWith _) def validSourceExtensions = List(".scala", ".java") @@ -320,8 +320,7 @@ class DirectoryClassPath(val dir: AbstractFile, val context: ClassPathContext[Ab case f if f.isDirectory && validPackage(f.name) => new DirectoryClassPath(f, context) } toList - - override def toString() = "directory classpath: "+ dir.toString() + override def toString() = "directory classpath: "+ dir } /** |