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

   `hasDebugSymbols` uses a manual boolean-flag loop; a stream `anyMatch` 
expresses the same short-circuiting check more directly.
   
   - Replace the `boolean ret` loop with 
`Arrays.stream(javaClass.getMethods()).anyMatch(...)` and add the 
`java.util.Arrays` import.
   - Mutation check: making the line-number predicate never match fails 
`JarClassesAnalyzerTest.analyzeJarWithDebug` (`has debug ==> expected: <true> 
but was: <false>`); the file was restored afterwards.
   
   Tracking: #14072
   
   Verified: `JAVA_HOME=<JDK 21> mvn -B -o test` (Maven 4.0.0-rc-7; the default 
Maven 3.10.0-rc-1 cannot read this workspace's Maven-4-style cache metadata for 
`org.apache.bcel:bcel:6.14.0`) → BUILD SUCCESS, Tests run: 91, Failures: 0, 
Errors: 0, Skipped: 0.
   


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