He-Pin opened a new pull request, #3138:
URL: https://github.com/apache/pekko/pull/3138

   ### Motivation
   
   `StreamOfStreams.scala` uses 
`Collections.unmodifiableSet(Collections.emptySet[Any])` — two method calls to 
create an immutable empty set.
   
   ### Modification
   
   Replace with `java.util.Set.of[Any]()` — a single JDK 9 factory call that 
already returns an immutable empty set. Remove the unused 
`java.util.Collections` import.
   
   ### Result
   
   Cleaner code: one call instead of two. Both approaches produce immutable 
empty sets with identical semantics.
   
   ### Tests
   
   - `sbt "stream/compile"` — passed
   
   ### References
   
   Refs #3136


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to