Skip to content

Commit f48a8d8

Browse files
committed
.
1 parent ce4e81d commit f48a8d8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

project/Build.scala

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,9 @@ object Build {
740740
import collection.JavaConverters._
741741
Files.walk(dest)
742742
.filter(p => p.toString().endsWith(".scala"))
743-
.filter(p => !p.getFileName().toString().equals("CollectionName.scala"))
744743
.map[java.io.File] { (file: java.nio.file.Path) =>
745-
val text = new String(Files.readAllBytes(path), java.nio.charset.StandardCharsets.UTF_8)
746-
Files.write(
744+
val text = new String(Files.readAllBytes(file.path), java.nio.charset.StandardCharsets.UTF_8)
745+
if (!file.getFileName().toString().equals("CollectionName.scala")) Files.write(
747746
file,
748747
("package dotty.shaded\n" +
749748
text
@@ -755,11 +754,6 @@ object Build {
755754
.replace("var head: Iterator[T] = null", "var head: Iterator[T] | Null = null")
756755
.replace("if (head != null && head.hasNext) true", "if (head != null && head.nn.hasNext) true")
757756
.replace("head.next()", "head.nn.next()")
758-
.replace(
759-
"_root_.scala.collection.internal.pprint.CollectionName.get(i)",
760-
"import scala.reflect.Selectable.reflectiveSelectable\n" +
761-
" i.asInstanceOf[{def collectionClassName: String}].collectionClassName"
762-
)
763757
.replace("abstract class Walker", "@scala.annotation.nowarn abstract class Walker")
764758
.replace("object TPrintLowPri", "@scala.annotation.nowarn object TPrintLowPri")).getBytes
765759
)

0 commit comments

Comments
 (0)