Skip to content

Commit

Permalink
Fix method mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica2828 committed Oct 16, 2024
1 parent 0b73932 commit 15f1657
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public ModuleContainsKeywordsPredicate(String keyword) {

@Override
public boolean test(Person person) {
return person.getModuleGrades().stream()
return person.getModules().stream()
.anyMatch(module -> module.toString().toLowerCase().contains(keyword.toLowerCase()));
}

Expand Down

0 comments on commit 15f1657

Please sign in to comment.