Skip to content

Commit ab384d4

Browse files
committed
No need call toInt
1 parent 33a2796 commit ab384d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/io/ChunkedByteBuffer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private[spark] class ChunkedByteBuffer(var chunks: Array[ByteBuffer]) {
6060
for (bytes <- getChunks()) {
6161
val capacity = bytes.limit()
6262
while (bytes.position() < capacity && bytes.remaining() > 0) {
63-
val ioSize = Math.min(bytes.remaining(), NIO_BUFFER_LIMIT.toInt)
63+
val ioSize = Math.min(bytes.remaining(), NIO_BUFFER_LIMIT)
6464
bytes.limit(bytes.position + ioSize)
6565
channel.write(bytes)
6666
}

0 commit comments

Comments
 (0)