Skip to content

Commit d8fd864

Browse files
fix(api): Add missing JvmStatic annotations (#2823)
Co-authored-by: Matt Creaser <mattwcc@amazon.com>
1 parent f29d7b7 commit d8fd864

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

aws-api/api/aws-api.api

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ public final class com/amplifyframework/api/graphql/model/ModelQuery {
262262

263263
public final class com/amplifyframework/api/graphql/model/ModelSubscription {
264264
public static final field INSTANCE Lcom/amplifyframework/api/graphql/model/ModelSubscription;
265-
public final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
266-
public final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
265+
public static final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
266+
public static final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
267267
public static final fun onCreate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
268268
public static final fun onCreate (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
269-
public final fun onDelete (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
269+
public static final fun onDelete (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
270270
public static final fun onDelete (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
271-
public final fun onUpdate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
271+
public static final fun onUpdate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
272272
public static final fun onUpdate (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest;
273273
}
274274

aws-api/src/main/java/com/amplifyframework/api/graphql/model/ModelSubscription.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ object ModelSubscription {
3333
* @param <M> the concrete type of the model.
3434
* @return a valid [GraphQLRequest] instance.
3535
</M> */
36+
@JvmStatic
3637
fun <M : Model> of(
3738
modelType: Class<M>,
3839
type: SubscriptionType,
@@ -49,6 +50,7 @@ object ModelSubscription {
4950
* @param <P> the concrete model path for the M model type
5051
* @return a valid [GraphQLRequest] instance.
5152
</M> */
53+
@JvmStatic
5254
fun <M : Model, P : ModelPath<M>> of(
5355
modelType: Class<M>,
5456
type: SubscriptionType,
@@ -93,6 +95,7 @@ object ModelSubscription {
9395
* @return a valid [GraphQLRequest] instance.
9496
* @see .of
9597
</M> */
98+
@JvmStatic
9699
fun <M : Model> onDelete(modelType: Class<M>): GraphQLRequest<M> {
97100
return of(modelType, SubscriptionType.ON_DELETE)
98101
}
@@ -121,6 +124,7 @@ object ModelSubscription {
121124
* @return a valid [GraphQLRequest] instance.
122125
* @see .of
123126
</M> */
127+
@JvmStatic
124128
fun <M : Model> onUpdate(modelType: Class<M>): GraphQLRequest<M> {
125129
return of(modelType, SubscriptionType.ON_UPDATE)
126130
}

0 commit comments

Comments
 (0)