Use enhanced for loop instead of indexed based iteration
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e26c7b6e9
commit
a169e866c1
|
@ -1687,8 +1687,8 @@ public class StringUtils {
|
|||
if (isEmpty(cs) || ArrayUtils.isEmpty(searchCharSequences)) {
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < searchCharSequences.length; i++) {
|
||||
if (contains(cs, searchCharSequences[i])) {
|
||||
for (CharSequence searchCharSequence : searchCharSequences) {
|
||||
if (contains(cs, searchCharSequence)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue