mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 03:55:10 +00:00
Simplify a null check in the private replaceEach() method. (#514)
This commit is contained in:
parent
96caf42b31
commit
0b899ee40b
@ -6717,8 +6717,7 @@ private static String replaceEach(
|
||||
// index of replace array that will replace the search string found
|
||||
// NOTE: logic duplicated below START
|
||||
for (int i = 0; i < searchLength; i++) {
|
||||
if (noMoreMatchesForReplIndex[i] || searchList[i] == null ||
|
||||
searchList[i].isEmpty() || replacementList[i] == null) {
|
||||
if (noMoreMatchesForReplIndex[i] || isEmpty(searchList[i]) || replacementList[i] == null) {
|
||||
continue;
|
||||
}
|
||||
tempIndex = text.indexOf(searchList[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user