mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 11:05:09 +00:00
Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e33304129
commit
39168bb734
@ -115,7 +115,7 @@ static int indexOf(final CharSequence cs, final CharSequence searchChar, final i
|
|||||||
static int lastIndexOf(final CharSequence cs, final int searchChar, int start) {
|
static int lastIndexOf(final CharSequence cs, final int searchChar, int start) {
|
||||||
if (cs instanceof String) {
|
if (cs instanceof String) {
|
||||||
return ((String) cs).lastIndexOf(searchChar, start);
|
return ((String) cs).lastIndexOf(searchChar, start);
|
||||||
} else {
|
}
|
||||||
final int sz = cs.length();
|
final int sz = cs.length();
|
||||||
if (start < 0) {
|
if (start < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
@ -130,7 +130,6 @@ static int lastIndexOf(final CharSequence cs, final int searchChar, int start) {
|
|||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used by the lastIndexOf(CharSequence methods) as a green implementation of lastIndexOf
|
* Used by the lastIndexOf(CharSequence methods) as a green implementation of lastIndexOf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user