Add final to methods to prepare for future inline
This commit is contained in:
parent
8e60ef5c6d
commit
03c567f85b
2 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ object ByteIterator {
|
|||
|
||||
@inline private def current: ByteArrayIterator = iterators.head
|
||||
@inline private def dropCurrent(): Unit = { iterators = iterators.tail }
|
||||
@inline def clear(): Unit = { iterators = MultiByteArrayIterator.empty.iterators }
|
||||
@inline final def clear(): Unit = { iterators = MultiByteArrayIterator.empty.iterators }
|
||||
|
||||
@inline final def hasNext: Boolean = current.hasNext
|
||||
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ object ByteIterator {
|
|||
|
||||
@inline private def current: ByteArrayIterator = iterators.head
|
||||
@inline private def dropCurrent(): Unit = { iterators = iterators.tail }
|
||||
@inline def clear(): Unit = { iterators = MultiByteArrayIterator.empty.iterators }
|
||||
@inline final def clear(): Unit = { iterators = MultiByteArrayIterator.empty.iterators }
|
||||
|
||||
@inline final def hasNext: Boolean = current.hasNext
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue