Skip to content

Commit 598955b

Browse files
committed
Merge pull request scala#33 from SethTisue/be-compatible-with-pr-4640
be compatible with more Scala versions
2 parents e99b1d5 + 83bb9db commit 598955b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partest/scala/tools/partest/nest/PathSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object PathSettings {
2828
private def cwd = Directory.Current getOrElse sys.error("user.dir property not set")
2929
private def isPartestDir(d: Directory) = (d.name == "test") && (d / testSourcePath isDirectory)
3030
private def findJar(name: String, ds: Directory*): Either[String, File] =
31-
ds.toStream flatMap (_.files) filter (_ hasExtension "jar") find ( _.name startsWith name ) map (Right(_)) getOrElse
31+
ds.iterator flatMap (_.files) filter (_ hasExtension "jar") find ( _.name startsWith name ) map (Right(_)) getOrElse
3232
Left(s"'${name}.jar' not found in '${ds map (_.path) mkString ", "}'.")
3333

3434
// Directory <root>/test

0 commit comments

Comments
 (0)