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:
Benedikt Ritter 2014-12-27 16:25:02 +00:00
parent 9e26c7b6e9
commit a169e866c1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}