Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-04-10 13:10:59 +00:00
parent 6b438fe99b
commit 3e33304129
1 changed files with 10 additions and 11 deletions

View File

@ -69,7 +69,7 @@ public static CharSequence subSequence(final CharSequence cs, final int start) {
static int indexOf(final CharSequence cs, final int searchChar, int start) {
if (cs instanceof String) {
return ((String) cs).indexOf(searchChar, start);
} else {
}
final int sz = cs.length();
if (start < 0) {
start = 0;
@ -81,7 +81,6 @@ static int indexOf(final CharSequence cs, final int searchChar, int start) {
}
return -1;
}
}
/**
* Used by the indexOf(CharSequence methods) as a green implementation of indexOf.