Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica2828 committed Nov 10, 2024
1 parent 9204e66 commit b2c53f1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public ModuleContainsKeywordsPredicate(String keyword) {
this.keyword = keyword;
}

@Override
public boolean test(Person person) {
String regex = "\\b" + keyword.toLowerCase() + "\\b";
return person.getModules().stream()
.anyMatch(module -> module.toString().toLowerCase().matches(".*" + regex + ".*"));
}
@Override
public boolean test(Person person) {
String regex = "\\b" + keyword.toLowerCase() + "\\b";
return person.getModules().stream()
.anyMatch(module -> module.toString().toLowerCase().matches(".*" + regex + ".*"));
}

@Override
public boolean equals(Object other) {
Expand Down

0 comments on commit b2c53f1

Please sign in to comment.