Avoid Array.ofDim where possible #22516
This commit is contained in:
parent
5ea2e0536c
commit
7a0e5b31f8
33 changed files with 74 additions and 75 deletions
|
|
@ -24,7 +24,7 @@ class ByteBufferSerializerDocSpec {
|
|||
|
||||
toBinary(o, buf)
|
||||
buf.flip()
|
||||
val bytes = Array.ofDim[Byte](buf.remaining)
|
||||
val bytes = new Array[Byte](buf.remaining)
|
||||
buf.get(bytes)
|
||||
bytes
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue