You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/06/14 21:52:58 UTC
[incubator-pekko] branch main updated: Add final to methods to prepare for future inline
This is an automated email from the ASF dual-hosted git repository.
mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/main by this push:
new 03c567f85b Add final to methods to prepare for future inline
03c567f85b is described below
commit 03c567f85b93b419b60490a0de1128abda2708e6
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Tue Jun 13 09:07:44 2023 +0200
Add final to methods to prepare for future inline
---
actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala | 2 +-
actor/src/main/scala-2.13/org/apache/pekko/util/ByteIterator.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala b/actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala
index 244acd76bd..c46ba2f54a 100644
--- a/actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala
+++ b/actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala
@@ -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
diff --git a/actor/src/main/scala-2.13/org/apache/pekko/util/ByteIterator.scala b/actor/src/main/scala-2.13/org/apache/pekko/util/ByteIterator.scala
index fa5b9d0849..4b650c1ec5 100644
--- a/actor/src/main/scala-2.13/org/apache/pekko/util/ByteIterator.scala
+++ b/actor/src/main/scala-2.13/org/apache/pekko/util/ByteIterator.scala
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org