=str Avoid boxing Attributes in java Optional (#25456)

This commit is contained in:
Andrea Peruffo 2018-08-20 16:43:46 +02:00 committed by Konrad `ktoso` Malawski
parent 61f844471b
commit fddc198178
5 changed files with 5 additions and 5 deletions

View file

@ -59,7 +59,7 @@ private[akka] final class FileSource(path: Path, chunkSize: Int, startPosition:
val logic = new GraphStageLogic(shape) with OutHandler {
handler
val buffer = ByteBuffer.allocate(chunkSize)
val maxReadAhead = inheritedAttributes.getAttribute(classOf[InputBuffer], InputBuffer(16, 16)).max
val maxReadAhead = inheritedAttributes.get[InputBuffer](InputBuffer(16, 16)).max
var channel: FileChannel = _
var position = startPosition
var chunkCallback: Try[Int] Unit = _