Skip to content

Commit c059f63

Browse files
Javadocs fix
1 parent b944bc4 commit c059f63

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sdk-api/src/main/java/dev/restate/sdk/Context.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ default Awaitable<Void> runAsync(ThrowingRunnable runnable) throws TerminalExcep
445445
* service consume from Kafka the responses of given external system interaction by using {@link
446446
* #awakeableHandle(String)}.
447447
*
448-
* @param clazz the response type to use for deserializing the {@link Awakeable} result.
448+
* @param clazz the response type to use for deserializing the {@link Awakeable} result. When using generic types, use {@link #awakeable(TypeTag)} instead.
449449
* @return the {@link Awakeable} to await on.
450450
* @see Awakeable
451451
*/
@@ -462,7 +462,6 @@ default <T> Awakeable<T> awakeable(Class<T> clazz) {
462462
* #awakeableHandle(String)}.
463463
*
464464
* @param typeTag the response type tag to use for deserializing the {@link Awakeable} result.
465-
* When using generic types, use {@link #awakeable(TypeRef)} instead.
466465
* @return the {@link Awakeable} to await on.
467466
* @see Awakeable
468467
*/

sdk-api/src/main/java/dev/restate/sdk/RestateRandom.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
*
2121
* <p>This instance is useful to generate identifiers, idempotency keys, and for uniform sampling
2222
* from a set of options. If a cryptographically secure value is needed, please generate that
23-
* externally using {@link ObjectContext#run(Serde, ThrowingSupplier)}.
23+
* externally using {@link Context#run(String, Class, ThrowingSupplier)}.
2424
*
25-
* <p>You <b>MUST NOT</b> use this object inside a {@link ObjectContext#run(Serde,
26-
* ThrowingSupplier)}.
25+
* <p>You <b>MUST NOT</b> use this object inside a {@link Context#run(String, Class, ThrowingSupplier)}/{@link Context#runAsync(String, Class, ThrowingSupplier)}.
2726
*/
2827
public class RestateRandom extends Random {
2928

0 commit comments

Comments
 (0)