Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getInvocationHandler (0.37 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

        }
    
        private static boolean isNullableCtAnnotation(Object ann) {
            if (Proxy.isProxyClass(ann.class)) {
                def typeName = (Proxy.getInvocationHandler(ann) as AnnotationImpl).annotation.typeName
                return NULLABLE_ANNOTATIONS.any { it.name == typeName }
            }
            return false
        }
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Apr 13 10:04:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

        private
        inline fun <reified T : Any> CtClass.ctAnnotation(): Annotation? =
            getAnnotation(T::class.java)
                ?.takeIf { Proxy.isProxyClass(it::class.java) }
                ?.let { Proxy.getInvocationHandler(it) as? AnnotationImpl }
                ?.annotation
    
        private
        val CtMember.jvmSignature: String
            get() = when (this) {
                is CtField -> "$name:$signature"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 07 08:20:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
Back to top