Replace FileInputStream and FileOutputStream, #22733

(because they use finalize that is not gc friendly)
This commit is contained in:
Patrik Nordwall 2017-04-19 19:05:19 +02:00 committed by Johan Andrén
parent 64c576da0f
commit de27c18469
5 changed files with 11 additions and 8 deletions

View file

@ -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 =

View file

@ -3,7 +3,6 @@
*/
package akka.remote.artery
import java.io.FileOutputStream
import java.nio.ByteBuffer
import java.text.SimpleDateFormat
import java.util.Date