From b2c53f1a80a658e42e92a1768c3519fb0776cb0f Mon Sep 17 00:00:00 2001 From: jessica2828 Date: Mon, 11 Nov 2024 07:57:04 +0800 Subject: [PATCH] Fix checkstyle --- .../person/ModuleContainsKeywordsPredicate.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/seedu/address/model/person/ModuleContainsKeywordsPredicate.java b/src/main/java/seedu/address/model/person/ModuleContainsKeywordsPredicate.java index ff1af354012..909ddb173d1 100644 --- a/src/main/java/seedu/address/model/person/ModuleContainsKeywordsPredicate.java +++ b/src/main/java/seedu/address/model/person/ModuleContainsKeywordsPredicate.java @@ -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) {