Skip to content

Commit

Permalink
Merge pull request quarkusio#31905 from Ladicek/arc-fix-kotlin-utils
Browse files Browse the repository at this point in the history
ArC: fix KotlinUtils.isKotlinSuspendMethod() in case of zero-parameter Kotlin methods
  • Loading branch information
Ladicek authored Mar 17, 2023
2 parents 924b450 + 4ca2d8a commit 7fe54ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public static boolean isKotlinSuspendMethod(MethodInfo method) {
if (!isKotlinMethod(method)) {
return false;
}
if (method.parametersCount() == 0) {
return false;
}

Type lastParameter = method.parameterType(method.parametersCount() - 1);
return KotlinDotNames.CONTINUATION.equals(lastParameter.name());
Expand Down

0 comments on commit 7fe54ed

Please sign in to comment.