Skip to content

Conversation

@hyunw9
Copy link
Contributor

@hyunw9 hyunw9 commented Dec 5, 2025

What is this PR for?

This PR refactors the anonymous Comparator implementation in StringsCompleter to use a method reference (String::compareToIgnoreCase).
The change simplifies the code, improves readability, and aligns the class with modern Java best practices.

What type of PR is it?

Refactoring

Todos

  • - Replace anonymous Comparator class with method reference.

What is the Jira issue?

How should this be tested?

Since the expected behavior remains unchanged, no additional tests are required.

Screenshots (if appropriate)

Questions:

  • Does the license files need to update? - No
  • Is there breaking changes for older versions? - No
  • Does this needs documentation? - No

Copy link
Contributor

@Reamer Reamer left a comment

Choose a reason for hiding this comment

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

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants