Add final to methods to prepare for future inline

This commit is contained in:
Matthew de Detrich 2023-06-13 09:07:44 +02:00 committed by Matthew de Detrich
parent 8e60ef5c6d
commit 03c567f85b
2 changed files with 2 additions and 2 deletions

View file

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

View file

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