#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:
Alessio Stalla 2019-11-08 10:04:51 +01:00
parent 276e3cf94b
commit 1c04441b03
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ public class CollectionFilteringUnitTest {
for (Employee employee : originalList) {
for (String name : nameFilter) {
if (employee.getName()
.equalsIgnoreCase(name)) {
if (employee.getName().equals(name)) {
filteredList.add(employee);
//break;
}
}
}