git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1074298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2011-02-24 21:22:48 +00:00
parent ad549f8f34
commit 15d50cf864
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ private static int ordinalIndexOf(String str, String searchStr, int ordinal, boo
int found = 0;
int index = lastIndex ? str.length() : INDEX_NOT_FOUND;
do {
if(lastIndex) {
if (lastIndex) {
index = str.lastIndexOf(searchStr, index - 1);
} else {
index = str.indexOf(searchStr, index + 1);