Skip to content

Commit c6086f6

Browse files
committedMay 16, 2024·
Replace removed PlainFile.delete() API method
1 parent d79bbf0 commit c6086f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎compiler/src/dotty/tools/dotc/core/tasty/BestEffortTastyWriter.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ object BestEffortTastyWriter:
1818
unit.pickled.foreach { (clz, binary) =>
1919
val parts = clz.fullName.mangledString.split('.')
2020
val outPath = outputPath(parts.toList, dir)
21-
val outTastyFile = new PlainFile(new File(outPath))
22-
val outstream = new DataOutputStream(outTastyFile.bufferedOutput)
21+
val outTastyFile = new File(outPath)
22+
val outstream = new DataOutputStream(new PlainFile(outTastyFile).bufferedOutput)
2323
try outstream.write(binary())
2424
catch case ex: ClosedByInterruptException =>
2525
try

0 commit comments

Comments
 (0)
Please sign in to comment.