chore: Deprecate JAPI. (#949)

This commit is contained in:
He-Pin(kerr) 2024-01-15 19:34:25 +08:00 committed by GitHub
parent dc034749b3
commit 87609395a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,8 +15,16 @@ package org.apache.pekko.japi;
import scala.collection.Seq;
@Deprecated
public class JAPI {
/**
* Create a Scala seq from a Java array.
*
* @deprecated since 1.1.0. Use <code>
* org.apache.pekko.japi.Util.immutableSeq(java.util.Arrays.asList(...));</code> instead.
*/
@Deprecated
@SafeVarargs
public static <T> Seq<T> seq(T... ts) {
return Util.immutableSeq(ts);