diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index d0ffebf84..d465e4d98 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -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; } }