pjfanning commented on code in PR #3140:
URL: https://github.com/apache/pekko/pull/3140#discussion_r3458457244
##########
stream/src/main/scala/org/apache/pekko/stream/javadsl/Graph.scala:
##########
@@ -726,7 +726,7 @@ object GraphDSL extends GraphCreate {
: Graph[S, java.util.List[M]] = {
require(!graphs.isEmpty, "The input list must have one or more Graph
elements")
val gbuilder = builder[java.util.List[M]]()
- val toList = (m1: M) => new util.ArrayList(util.Arrays.asList(m1))
+ val toList = (m1: M) => new util.ArrayList(util.List.of(m1))
Review Comment:
can we change this then? to just `val toList = (m1: M) => util.List.of(m1)`
--
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]