From f5b0476c3c97cb85d370af28c4b3969ab6a04cc7 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 21 Sep 2024 01:25:30 +0100 Subject: [PATCH] scala 3 compile issue --- .../org/apache/pekko/stream/javadsl/CollectionUtil.scala | 2 +- .../org/apache/pekko/stream/javadsl/CollectionUtil.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stream/src/main/scala-2.12/org/apache/pekko/stream/javadsl/CollectionUtil.scala b/stream/src/main/scala-2.12/org/apache/pekko/stream/javadsl/CollectionUtil.scala index fd4eb90c7d..d0c1f24507 100644 --- a/stream/src/main/scala-2.12/org/apache/pekko/stream/javadsl/CollectionUtil.scala +++ b/stream/src/main/scala-2.12/org/apache/pekko/stream/javadsl/CollectionUtil.scala @@ -26,7 +26,7 @@ import pekko.util.ccompat.JavaConverters._ /** * INTERNAL API */ -private[javadsl] final object CollectionUtil { +private[javadsl] object CollectionUtil { @inline def toSeq[T](jlist: java.util.List[T]): immutable.Seq[T] = jlist.asScala.toList diff --git a/stream/src/main/scala-2.13+/org/apache/pekko/stream/javadsl/CollectionUtil.scala b/stream/src/main/scala-2.13+/org/apache/pekko/stream/javadsl/CollectionUtil.scala index 51c9c86f61..d9bbde82c8 100644 --- a/stream/src/main/scala-2.13+/org/apache/pekko/stream/javadsl/CollectionUtil.scala +++ b/stream/src/main/scala-2.13+/org/apache/pekko/stream/javadsl/CollectionUtil.scala @@ -26,7 +26,7 @@ import pekko.util.ccompat.JavaConverters._ /** * INTERNAL API */ -private[javadsl] final object CollectionUtil { +private[javadsl] object CollectionUtil { @inline def toSeq[T](jlist: java.util.List[T]): immutable.Seq[T] = jlist.asScala.toSeq