Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ the bottom of this file. Restoration ships incrementally per feature area.
compiles).
- `enum` was renamed to `e` at one call site in `GenKeyCodec` (`enum` is reserved in Scala 3).
- `@targetName` annotation added to `CloseableIterator` overloaded methods.
- Varargs splice syntax modernized from Scala 2 `foo(seq: _*)` to Scala 3 `foo(seq*)` across all
call sites (`CrossUtils.wrappedArray`/`dictionary`, `JCollectionUtils.JIterable.apply`,
`MongoOrder.apply`). Pure call-site syntax — no signature change, no source-compat impact.

### mongo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object CrossUtils {

def newNativeDict[A]: NativeDict[A] = js.Dictionary.empty[A]

def wrappedArray[A](elems: A*): MIndexedSeq[A] = js.Array(elems: _*)
def wrappedArray[A](elems: A*): MIndexedSeq[A] = js.Array(elems*)
def arrayBuffer[A]: MIndexedSeq[A] with MBuffer[A] = js.Array[A]()
def dictionary[A](keyValues: (String, A)*): MMap[String, A] = js.Dictionary(keyValues: _*)
def dictionary[A](keyValues: (String, A)*): MMap[String, A] = js.Dictionary(keyValues*)
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object CrossUtils {
def newNativeDict[A]: NativeDict[A] = new MHashMap[String, A]
def unsetArrayValue: Any = null

def wrappedArray[A: ClassTag](elems: A*): MIndexedSeq[A] = Array(elems: _*)
def wrappedArray[A: ClassTag](elems: A*): MIndexedSeq[A] = Array(elems*)
def arrayBuffer[A]: MIndexedSeq[A] with MBuffer[A] = new MArrayBuffer[A]
def dictionary[A](keyValues: (String, A)*): MMap[String, A] = MHashMap[String, A](keyValues: _*)
def dictionary[A](keyValues: (String, A)*): MMap[String, A] = MHashMap[String, A](keyValues*)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package annotation
/** When applied on varargs parameter, indicates that at least some number of parameters is required. This is later
* checked by the static analyzer. <br/> WARNING: implementation of method which takes a varargs parameter may NOT
* assume that given number of arguments will always be passed, because it's still possible to pass a `Seq` where
* varargs parameter is required using the `: _*` ascription, e.g.
* varargs parameter is required using the `*` ascription, e.g.
* {{{
* varargsMethod(List(): _*)
* varargsMethod(List()*)
* }}}
* and that is not checked by the static analyzer.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ trait JCollectionUtils extends JFactories {

object JIterable {
def apply[T](values: T*): JIterable[T] =
JArrayList(values: _*)
JArrayList(values*)

implicit def asJIterableFactory[T](obj: JIterable.type): Factory[T, JIterable[T]] =
new JCollectionFactory(new JArrayList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object MongoOrder {
def simple[T](ascending: Boolean): MongoOrder[T] = Simple(ascending)

def apply[E](refs: (MongoPropertyRef[E, _], Boolean)*): MongoDocumentOrder[E] =
MongoDocumentOrder(refs: _*)
MongoDocumentOrder(refs*)

final case class Simple[T](ascending: Boolean) extends MongoOrder[T] {
def toBson: BsonValue = Bson.int(if (ascending) 1 else -1)
Expand Down
Loading