farkhalit commented on PR #434: URL: https://github.com/apache/commons-cli/pull/434#issuecomment-5113696177
Addressed the copilot note. I kept the Util.isEmpty guard and made the null case intentional: getMatchingOptions(null) now returns an empty list instead of throwing from startsWith, which matches the documented no-match contract. Updated the Javadoc to say so and added a null assertion to the test. Pushed. -- 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]
