miinhho opened a new pull request, #5287: URL: https://github.com/apache/zeppelin/pull/5287
### What is this PR for? Fix `GroovyInterpreter.completion()` to return an empty list instead of null when autocomplete is not supported. This aligns with the collection-returning method contract (Effective Java Item 54), avoids potential NullPointerExceptions in the completion call chain, and provides a safer API for programmatic use. ### What type of PR is it? Bug Fix ### Todos * [x] Fix `GroovyInterpreter.completion()` to return an empty list instead of null ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-6506 ### How should this be tested? * Run the existing Groovy interpreter tests to ensure no regressions. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
