efegokdemir opened a new pull request, #179:
URL: https://github.com/apache/maven-shared-jar/pull/179

   ## Summary
   
   `JarData` can be exposed before all analyzers have populated its optional 
analysis data. Its accessor methods currently throw `NullPointerException` in 
that state. This change makes those accessors report empty analysis results 
until the corresponding data is available.
   
   ## Changes
   
   - Make class and debug accessors safe when `JarClasses` is not initialized.
   - Make root-entry counts safe before root entries are populated.
   - Add a regression test covering the uninitialized state.
   
   ## Testing
   
   - `mvn -q -Dspotless.check.skip=true -Dspotless.apply.skip=true 
-Dtest=JarDataTest test` — passed
   - `mvn -q -Prun-its -Dspotless.check.skip=true -Dspotless.apply.skip=true 
verify` — passed
   - `git diff --check` — passed
   
   The Spotless plugin's formatter could not run in this environment because 
its bundled formatter is incompatible with the installed JDK 27; the repository 
checks above were run with the formatter goals skipped for that environment 
limitation.
   
   This is not duplicating an existing pull request: the issue is open and no 
related open PR was found at submission time.
   
   Fixes #137
   


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