Skip to content

Conversation

@JiaqingTan
Copy link

Add case-insensitive feature to find function

@JiaqingTan
Copy link
Author

Ready for review

@adamwth
Copy link

adamwth commented Sep 13, 2018

Nice enhancement! Might want to add your JUnit and I/O tests too!

@teowz46
Copy link

teowz46 commented Sep 13, 2018

Just a minor nitpick, but I think it would be nicer to use the Set's iterator by using a for loop (for (String s : keywords)) instead of assigning the iterator to a variable. Also the number of line breaks in your convertLowerCase function seems rather excessive =P

Copy link

@liliwei25 liliwei25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! No major issues. 👍

return matchedPersons;
}

private Set<String> convertLowercase(Set<String> keywords) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to follow naming convention, i.e. convertToLowercase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants