All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.faulttolerance.autoconfig.KotlinSupport Maven / Gradle / Ivy

There is a newer version: 6.4.1
Show newest version
package io.smallrye.faulttolerance.autoconfig;

// TODO this would ideally live in the `kotlin` module
final class KotlinSupport {
    private static final String KOTLIN_CONTINUATION = "kotlin.coroutines.Continuation";

    static boolean isLegitimate(MethodDescriptor method) {
        if (method.parameterTypes.length > 0
                && method.parameterTypes[method.parameterTypes.length - 1].getName().equals(KOTLIN_CONTINUATION)
                && method.name.endsWith("$suspendImpl")) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy