Replace FileInputStream and FileOutputStream, #22733
(because they use finalize that is not gc friendly)
This commit is contained in:
parent
64c576da0f
commit
de27c18469
5 changed files with 11 additions and 8 deletions
|
|
@ -4,7 +4,7 @@
|
|||
package akka.remote.artery
|
||||
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
import java.nio.Files
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ object BenchmarkFileReporter {
|
|||
}
|
||||
val config = system.settings.config
|
||||
|
||||
val fos = new FileOutputStream(testResultFile)
|
||||
val fos = Files.newOutputStream(testResultFile.toPath)
|
||||
reportResults(s"Git commit: $gitCommit")
|
||||
|
||||
val settingsToReport =
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
*/
|
||||
package akka.remote.artery
|
||||
|
||||
import java.io.FileOutputStream
|
||||
import java.nio.ByteBuffer
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue