Avoid Array.ofDim where possible #22516

This commit is contained in:
Johan Andrén 2017-03-13 17:49:45 +01:00 committed by GitHub
parent 5ea2e0536c
commit 7a0e5b31f8
33 changed files with 74 additions and 75 deletions

View file

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