He-Pin commented on code in PR #1282:
URL: https://github.com/apache/pekko/pull/1282#discussion_r1566226384
##########
actor/src/main/scala-2.12/org/apache/pekko/util/ByteIterator.scala:
##########
@@ -484,10 +484,10 @@ abstract class ByteIterator extends
BufferedIterator[Byte] {
}
def indexOf(elem: Byte): Int = indexOf(elem, 0)
- def indexOf(elem: Byte, from: Int): Int = indexWhere(_ == elem, from)
+ def indexOf(elem: Byte, from: Int): Int = indexWhere(elem == _, from)
Review Comment:
That's ture, I think we should open up an issue in scala/bug before we merge
this, because this is kind of behavior change in anyway.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]