eunhwa99 opened a new pull request, #5033:
URL: https://github.com/apache/zeppelin/pull/5033

   ### What is this PR for?
   This PR refactors the getNotesInfo method in NotebookService to improve 
readability and enforce immutability.
   The functional behavior remains unchanged, but the code is now more concise 
and safer for multi-threaded access.
   - Use `Comparator.comparing` for cleaner sorting logic
   - Return an `unmodifiable list` to emphasize immutability
   - Remove redundant condition for improved readability
   - Refactored getNotesInfo to use inline return, eliminating intermediate 
variables.
   
   This change is internal-only and does not affect any runtime behavior or 
public APIs.
   
   ### What type of PR is it?
   Refactoring
   
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   * [Zeppelin-6285](https://issues.apache.org/jira/browse/ZEPPELIN-6285)
   
   ### How should this be tested?
   * No functional changes; existing tests should pass as-is.
   
   ### 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to