zeppelin icon indicating copy to clipboard operation
zeppelin copied to clipboard

[ZEPPELIN-6385] Refactor StringsCompleter to use method reference for Comparator

Open hyunw9 opened this issue 3 weeks ago • 0 comments

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

  • [x] - Replace anonymous Comparator<String> 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

hyunw9 avatar Dec 05 '25 07:12 hyunw9