RootCauseunvalidated
lastIndexOf(String, int) uses fromIndex as an inclusive upper bound and searches backward from that position, so passing the last match index can return the same match again
c2fb6320-7b7f-4bba-bc90-477033472026
lastIndexOf(String, int) uses fromIndex as an inclusive upper bound and searches backward from that position, so passing the last match index can return the same match again