netty5/common/src
Nick Hill cb85e03d72 AsciiString.lastIndexOf(...) is implemented incorrectly (#9103)
Motivation

@xiaoheng1 reported incorrect behaviour of AsciiString.lastIndexOf in
#9099. Upon closer inspection it appears that it was never implemented
correctly and searches between the provided index and the end of the
string similar to indexOf(...), rather than between the provided index
and the beginning of the string as the javadoc states (and in line with
java.lang.String).

Modifications

Fix AsciiString.lastIndexOf implementation and corresponding unit tests
to behave the same as the equivalent String methods.

Result

Fixes #9099
2019-05-13 07:03:32 +02:00
..
main AsciiString.lastIndexOf(...) is implemented incorrectly (#9103) 2019-05-13 07:03:32 +02:00
test AsciiString.lastIndexOf(...) is implemented incorrectly (#9103) 2019-05-13 07:03:32 +02:00