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 {
740
740
import collection .JavaConverters ._
741
741
Files .walk(dest)
742
742
.filter(p => p.toString().endsWith(" .scala" ))
743
- .filter(p => ! p.getFileName().toString().equals(" CollectionName.scala" ))
744
743
.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(
747
746
file,
748
747
(" package dotty.shaded\n " +
749
748
text
@@ -755,11 +754,6 @@ object Build {
755
754
.replace(" var head: Iterator[T] = null" , " var head: Iterator[T] | Null = null" )
756
755
.replace(" if (head != null && head.hasNext) true" , " if (head != null && head.nn.hasNext) true" )
757
756
.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
- )
763
757
.replace(" abstract class Walker" , " @scala.annotation.nowarn abstract class Walker" )
764
758
.replace(" object TPrintLowPri" , " @scala.annotation.nowarn object TPrintLowPri" )).getBytes
765
759
)
You can’t perform that action at this time.
0 commit comments