#BAEL-18411 change code sample to use equals instead of equalsIgnoreCase and add commented out break statement mentioned in the article.
This commit is contained in:
parent
276e3cf94b
commit
1c04441b03
@ -33,9 +33,9 @@ public class CollectionFilteringUnitTest {
|
|||||||
|
|
||||||
for (Employee employee : originalList) {
|
for (Employee employee : originalList) {
|
||||||
for (String name : nameFilter) {
|
for (String name : nameFilter) {
|
||||||
if (employee.getName()
|
if (employee.getName().equals(name)) {
|
||||||
.equalsIgnoreCase(name)) {
|
|
||||||
filteredList.add(employee);
|
filteredList.add(employee);
|
||||||
|
//break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user