2323import org .jspecify .annotations .NonNull ;
2424
2525/**
26- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
26+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
27+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
2728 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
28- * ctx.awakeable(Integer.TYPE)}
29+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
2930 */
3031@ Deprecated (since = "2.0" , forRemoval = true )
3132public abstract class JsonSerdes {
3233
3334 private JsonSerdes () {}
3435
3536 /**
36- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
37+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
38+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
3739 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
38- * ctx.awakeable(Integer.TYPE)}
40+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
3941 */
4042 @ Deprecated (since = "2.0" , forRemoval = true )
4143 public static final Serde <@ NonNull String > STRING =
@@ -51,9 +53,10 @@ private JsonSerdes() {}
5153 });
5254
5355 /**
54- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
56+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
57+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
5558 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
56- * ctx.awakeable(Integer.TYPE)}
59+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
5760 */
5861 @ Deprecated (since = "2.0" , forRemoval = true )
5962 public static final Serde <@ NonNull Boolean > BOOLEAN =
@@ -66,9 +69,10 @@ private JsonSerdes() {}
6669 });
6770
6871 /**
69- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
72+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
73+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
7074 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
71- * ctx.awakeable(Integer.TYPE)}
75+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
7276 */
7377 @ Deprecated (since = "2.0" , forRemoval = true )
7478 public static final Serde <@ NonNull Byte > BYTE =
@@ -81,9 +85,10 @@ private JsonSerdes() {}
8185 });
8286
8387 /**
84- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
88+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
89+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
8590 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
86- * ctx.awakeable(Integer.TYPE)}
91+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
8792 */
8893 @ Deprecated (since = "2.0" , forRemoval = true )
8994 public static final Serde <@ NonNull Short > SHORT =
@@ -96,9 +101,10 @@ private JsonSerdes() {}
96101 });
97102
98103 /**
99- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
104+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
105+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
100106 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
101- * ctx.awakeable(Integer.TYPE)}
107+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
102108 */
103109 @ Deprecated (since = "2.0" , forRemoval = true )
104110 public static final Serde <@ NonNull Integer > INT =
@@ -111,9 +117,10 @@ private JsonSerdes() {}
111117 });
112118
113119 /**
114- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
120+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
121+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
115122 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
116- * ctx.awakeable(Integer.TYPE)}
123+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
117124 */
118125 @ Deprecated (since = "2.0" , forRemoval = true )
119126 public static final Serde <@ NonNull Long > LONG =
@@ -126,9 +133,10 @@ private JsonSerdes() {}
126133 });
127134
128135 /**
129- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
136+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
137+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
130138 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
131- * ctx.awakeable(Integer.TYPE)}
139+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
132140 */
133141 @ Deprecated (since = "2.0" , forRemoval = true )
134142 public static final Serde <@ NonNull Float > FLOAT =
@@ -141,9 +149,10 @@ private JsonSerdes() {}
141149 });
142150
143151 /**
144- * @deprecated For primitive types, simply use the overloads of the {@link Context} methods
152+ * @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
153+ * dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
145154 * accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
146- * ctx.awakeable(Integer.TYPE)}
155+ * ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
147156 */
148157 @ Deprecated (since = "2.0" , forRemoval = true )
149158 public static final Serde <@ NonNull Double > DOUBLE =
0 commit comments