From 87609395a633dfcb009440bd4663089cc997dcd9 Mon Sep 17 00:00:00 2001 From: "He-Pin(kerr)" Date: Mon, 15 Jan 2024 19:34:25 +0800 Subject: [PATCH] chore: Deprecate JAPI. (#949) --- actor/src/main/java/org/apache/pekko/japi/JAPI.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/actor/src/main/java/org/apache/pekko/japi/JAPI.java b/actor/src/main/java/org/apache/pekko/japi/JAPI.java index 11384f113f9..2a3015c07a2 100644 --- a/actor/src/main/java/org/apache/pekko/japi/JAPI.java +++ b/actor/src/main/java/org/apache/pekko/japi/JAPI.java @@ -15,8 +15,16 @@ import scala.collection.Seq; +@Deprecated public class JAPI { + /** + * Create a Scala seq from a Java array. + * + * @deprecated since 1.1.0. Use + * org.apache.pekko.japi.Util.immutableSeq(java.util.Arrays.asList(...)); instead. + */ + @Deprecated @SafeVarargs public static Seq seq(T... ts) { return Util.immutableSeq(ts);