Skip to content

Commit

Permalink
Change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
tingxuanp committed Oct 10, 2024
1 parent 2abfb3f commit 4d8f3c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public CommandResult execute(Model model) {
model.updateFilteredPersonList(predicate);

if (!model.getFilteredPersonList().isEmpty()) {
return new CommandResult(String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.displayString()));
return new CommandResult(String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.getDisplayString()));
} else {
return new CommandResult(MESSAGE_FIND_PERSON_UNSUCCESSFUL);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String toString() {
return new ToStringBuilder(this).add("keywords", keywords).toString();
}

public String displayString() {
public String getDisplayString() {
return String.join(", ", keywords);
}
}

0 comments on commit 4d8f3c7

Please sign in to comment.