Scala

Scala

By DeepSource

Consider using the new syntax for vararg splicing SC-R1080

Anti-pattern
Major

Scala 2 used the syntax entity_:* to define vararg splices. However, Scala 3 has changed this syntax to entity*. While both kinds of syntax are valid in Scala 3 for now, this behavior is likely to change in the near future. Consider migrating to the newer syntax as soon as possible.

Bad Practice

m(arr:_*)

Recommended

m(arr*)

Reference