From 272af6e78c95da65471728ee7457295429d97755 Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Thu, 5 Sep 2024 09:20:49 +0200 Subject: [PATCH] Add final modifier --- .../scala-2.11_2.12/scala/collection/compat/PackageShared.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala b/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala index 8d811e20..a5511615 100644 --- a/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala +++ b/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala @@ -360,7 +360,7 @@ private[compat] trait PackageShared { new RandomExtensions(self) } -class ArrayExtensions(private val fact: Array.type) extends AnyVal { +final class ArrayExtensions(private val fact: Array.type) extends AnyVal { def from[A: ClassTag](source: TraversableOnce[A]): Array[A] = source match { case it: Iterable[A] => it.toArray[A]