@@ -14,7 +14,6 @@ object WrapFnGen {
1414 val packaging = " package scala.compat.java8"
1515
1616 import scala .tools .nsc ._
17- import scala .reflect .internal ._
1817 val settings = new Settings (msg => sys.error(msg))
1918 settings.usejavacp.value = true
2019 val compiler = new Global (settings)
@@ -59,12 +58,12 @@ object WrapFnGen {
5958 }
6059
6160 implicit class SplitMyLinesAndStuff (s : String ) {
62- def toVec = s.linesIterator .toVector
61+ def toVec = s.lines .toVector
6362 def nonBlank = s.trim.length > 0
6463 }
6564
6665 implicit class TreeToText (t : Tree ) {
67- def text = showCode(t).replace(" $" , " " ).linesIterator .toVector
66+ def text = showCode(t).replace(" $" , " " ).lines .toVector
6867 }
6968
7069 case class Prioritized (lines : Vector [String ], priority : Int ) {
@@ -253,7 +252,6 @@ object WrapFnGen {
253252 q """ @inline implicit def $s2jImpN[.. $scalafnTdefs](sf: $scalaType[.. $scalafnTnames])(implicit .. $evs): $s2jValCN[.. $tnParams] =
254253 new $s2jValCN[.. $tnParams](sf.asInstanceOf[ $scalaType[.. $scalaTargs]])
255254 """
256- val depth = numberedA.size
257255 (tree, tdParams.length)
258256 }
259257
@@ -290,7 +288,7 @@ object WrapFnGen {
290288 def sameText (f : java.io.File , text : String ): Boolean = {
291289 val x = scala.io.Source .fromFile(f)
292290 val lines = try { x.getLines.toVector } finally { x.close }
293- lines.iterator.filter(_.nonBlank) == text.linesIterator .filter(_.nonBlank)
291+ lines.iterator.filter(_.nonBlank) == text.lines .filter(_.nonBlank)
294292 }
295293
296294 def write (f : java.io.File , text : String ) {
0 commit comments