File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments