sanjana2505006 opened a new pull request, #8271:
URL: https://github.com/apache/camel-quarkus/pull/8271

   ## Summary
   
   This PR modernizes Stream API usage across the camel-quarkus codebase, 
affecting **105 files** with non-functional improvements that enhance code 
readability and follow modern Java best practices.
   
   ## Changes
   
   ### Pattern 1: `.collect(Collectors.toList())` → `.toList()`
   - **Impact**: 89+ files
   - **Benefit**: More concise, removes unnecessary imports, returns 
unmodifiable list
   
   ### Pattern 2: `.toArray(new T[size])` → `.toArray(T[]::new)`
   - **Impact**: 65+ files  
   - **Benefit**: More idiomatic, avoids manual size calculation
   
   ## Affected Components
   - AWS extension processors (15 files)
   - Other extension processors (35+ files)
   - Integration tests (40+ files)
   - Tooling (4 files)
   
   ## Verification
   - ✅ Format validation passed
   - ✅ Sample compilation successful
   - ✅ All changes are purely syntactic with identical runtime behavior
   
   ## Statistics
   - 105 files changed
   - 1,332 insertions(+)
   - 207 deletions(-)
   
   ## Java Compatibility
   Project uses Java 17, which fully supports both modernizations:
   - `.toList()` (available since Java 16)
   - `.toArray(T[]::new)` (available since Java 11)


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