File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ final class JrtClassPath(fs: java.nio.file.FileSystem) extends ClassPath with No
214
214
final class CtSymClassPath (ctSym : java.nio.file.Path , release : Int ) extends ClassPath with NoSourcePaths {
215
215
import java .nio .file .Path , java .nio .file .*
216
216
217
- private val fileSystem : FileSystem = FileSystems .newFileSystem(ctSym, null . asInstanceOf [ ClassLoader ] )
217
+ private val fileSystem : FileSystem = FileSystems .newFileSystem(ctSym, null : ClassLoader | Null )
218
218
private val root : Path = fileSystem.getRootDirectories.iterator.next
219
219
private val roots = Files .newDirectoryStream(root).iterator.asScala.toList
220
220
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ object StdNames {
41
41
inline val Product = " Product"
42
42
43
43
@ sharable
44
- private val disallowed = java.util.regex.Pattern .compile(""" [<>]""" ).nn
45
- def sanitize (str : String ): String = disallowed.matcher(str).replaceAll(""" \$""" ).nn
44
+ private val disallowed = java.util.regex.Pattern .compile(""" [<>]""" )
45
+ def sanitize (str : String ): String = disallowed.matcher(str).replaceAll(""" \$""" )
46
46
}
47
47
48
48
abstract class DefinedNames [N <: Name ] {
You can’t perform that action at this time.
0 commit comments