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

   ### What is this PR for?
   This PR refactors the ElasticsearchClientTypeBuilder class to improve its 
robustness and readability:
   - Replaces StringUtils.isEmpty() with StringUtils.isBlank() to treat 
whitespace-only strings as invalid input
   - Simplifies enum parsing by removing redundant checks and using a try-catch 
block around Enum.valueOf(...)
   - Ensures that invalid or null inputs gracefully fall back to 
ElasticsearchClientType.UNKNOWN
   
   ### What type of PR is it?
   Refactoring
   
   ### Todos
   * [x] - Verify existing tests
   
   ### What is the Jira issue?
   * Jira: https://issues.apache.org/jira/browse/ZEPPELIN-6262
   
   ### How should this be tested?
   N/A
   
   ### Screenshots (if appropriate)
   N/A
   
   ### 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