efegokdemir opened a new pull request, #197:
URL: https://github.com/apache/maven-toolchains-plugin/pull/197

   Fixes #169
   
   ## Summary
   
   `ToolchainsRequirement.getParams` now handles unknown toolchain types 
without throwing a NullPointerException.
   
   ## Changes
   
   - Return an immutable empty map when the requested type is not configured.
   - Preserve the existing immutable view for configured parameters.
   - Add regression coverage for both unknown and configured types.
   
   ## Testing
   
   - 
`JAVA_HOME=/opt/homebrew/Cellar/openjdk/27/libexec/openjdk.jdk/Contents/Home 
mvn -DskipITs -Dspotless.check.skip=true -Dspotless.apply.skip=true verify` — 
passed; 3 tests passed.
   - `git diff --check` — passed.
   - Checkstyle, compilation, RAT and dependency analysis passed.
   - Integration tests were not run because `-DskipITs` was used for local 
validation.
   
   ## Notes
   
   This keeps the public method total for unknown keys and avoids changing 
behavior for configured types. AI assistance was used in preparing this change; 
I reviewed the modified code and test results.
   
   - [x] I hereby declare this contribution to be licensed under the Apache 
License Version 2.0, January 2004.


-- 
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]

Reply via email to