I\'m calling a Scala method, from Java. And I need to make the conversion from Seq to List.
I can\'t modified the signature of the Scala method, so I can\'t used the
Since 2.12 this is the recommended way:
public static java.util.List convert(scala.collection.Seq seq) { return scala.collection.JavaConverters.seqAsJavaList(seq); }
All other methods a @deprecated("use JavaConverters or consider ToJavaImplicits", since="2.12.0")
@deprecated("use JavaConverters or consider ToJavaImplicits", since="2.12.0")