package kotlin.jvm; import androidx.exifinterface.media.ExifInterface; import io.sentry.SentryBaseEvent; import io.sentry.profilemeasurements.ProfileMeasurement; import java.lang.annotation.Annotation; import kotlin.Deprecated; import kotlin.DeprecationLevel; import kotlin.Metadata; import kotlin.ReplaceWith; import kotlin.jvm.internal.ClassBasedDeclarationContainer; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Reflection; import kotlin.reflect.KClass; /* compiled from: JvmClassMapping.kt */ @Metadata(d1 = {"\u00002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0010\n\u0002\b\n\n\u0002\u0010\u0000\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\u0010\u0011\n\u0002\b\u0002\u001a\u001f\u0010\u001f\u001a\u00020 \"\n\b\u0000\u0010\u0002\u0018\u0001*\u00020\u0014*\u0006\u0012\u0002\b\u00030!¢\u0006\u0002\u0010\"\"'\u0010\u0000\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0001\"\b\b\u0000\u0010\u0002*\u00020\u0003*\u0002H\u00028F¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005\";\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u000e\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\t*\b\u0012\u0004\u0012\u0002H\b0\t8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"-\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00018G¢\u0006\f\u0012\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"&\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007\"\b\b\u0000\u0010\u0002*\u00020\u0014*\u0002H\u00028Æ\u0002¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0015\";\u0010\u0013\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00010\u0007\"\b\b\u0000\u0010\u0002*\u00020\u0014*\b\u0012\u0004\u0012\u0002H\u00020\u00018Ç\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u0016\u0010\u0010\u001a\u0004\b\u0017\u0010\u0012\"+\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007\"\b\b\u0000\u0010\u0002*\u00020\u0014*\b\u0012\u0004\u0012\u0002H\u00020\u00018F¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u0012\"-\u0010\u001a\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0007\"\b\b\u0000\u0010\u0002*\u00020\u0014*\b\u0012\u0004\u0012\u0002H\u00020\u00018F¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u0012\"+\u0010\u001c\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\b\b\u0000\u0010\u0002*\u00020\u0014*\b\u0012\u0004\u0012\u0002H\u00020\u00078G¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u001e¨\u0006#"}, d2 = {"annotationClass", "Lkotlin/reflect/KClass;", ExifInterface.GPS_DIRECTION_TRUE, "", "getAnnotationClass", "(Ljava/lang/annotation/Annotation;)Lkotlin/reflect/KClass;", "declaringJavaClass", "Ljava/lang/Class;", ExifInterface.LONGITUDE_EAST, "", "getDeclaringJavaClass$annotations", "(Ljava/lang/Enum;)V", "getDeclaringJavaClass", "(Ljava/lang/Enum;)Ljava/lang/Class;", SentryBaseEvent.DEFAULT_PLATFORM, "getJavaClass$annotations", "(Lkotlin/reflect/KClass;)V", "getJavaClass", "(Lkotlin/reflect/KClass;)Ljava/lang/Class;", "javaClass", "", "(Ljava/lang/Object;)Ljava/lang/Class;", "getRuntimeClassOfKClassInstance$annotations", "getRuntimeClassOfKClassInstance", "javaObjectType", "getJavaObjectType", "javaPrimitiveType", "getJavaPrimitiveType", "kotlin", "getKotlinClass", "(Ljava/lang/Class;)Lkotlin/reflect/KClass;", "isArrayOf", "", "", "([Ljava/lang/Object;)Z", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48) /* loaded from: classes3.dex */ public final class JvmClassMappingKt { public static /* synthetic */ void getDeclaringJavaClass$annotations(Enum r0) { } public static /* synthetic */ void getJavaClass$annotations(KClass kClass) { } @Deprecated(level = DeprecationLevel.ERROR, message = "Use 'java' property to get Java class corresponding to this Kotlin class or cast this instance to Any if you really want to get the runtime Java class of this implementation of KClass.", replaceWith = @ReplaceWith(expression = "(this as Any).javaClass", imports = {})) public static /* synthetic */ void getRuntimeClassOfKClassInstance$annotations(KClass kClass) { } public static final Class getJavaClass(KClass kClass) { Intrinsics.checkNotNullParameter(kClass, ""); Class cls = (Class) ((ClassBasedDeclarationContainer) kClass).getJClass(); Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>"); return cls; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ public static final Class getJavaPrimitiveType(KClass kClass) { Intrinsics.checkNotNullParameter(kClass, ""); Class cls = (Class) ((ClassBasedDeclarationContainer) kClass).getJClass(); if (cls.isPrimitive()) { Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>"); return cls; } String name = cls.getName(); if (name != null) { switch (name.hashCode()) { case -2056817302: if (name.equals("java.lang.Integer")) { return Integer.TYPE; } break; case -527879800: if (name.equals("java.lang.Float")) { return Float.TYPE; } break; case -515992664: if (name.equals("java.lang.Short")) { return Short.TYPE; } break; case 155276373: if (name.equals("java.lang.Character")) { return Character.TYPE; } break; case 344809556: if (name.equals("java.lang.Boolean")) { return Boolean.TYPE; } break; case 398507100: if (name.equals("java.lang.Byte")) { return Byte.TYPE; } break; case 398795216: if (name.equals("java.lang.Long")) { return Long.TYPE; } break; case 399092968: if (name.equals("java.lang.Void")) { return Void.TYPE; } break; case 761287205: if (name.equals("java.lang.Double")) { return Double.TYPE; } break; } } return null; } public static final Class getJavaObjectType(KClass kClass) { Intrinsics.checkNotNullParameter(kClass, ""); Class cls = (Class) ((ClassBasedDeclarationContainer) kClass).getJClass(); if (!cls.isPrimitive()) { Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>"); return cls; } String name = cls.getName(); if (name != null) { switch (name.hashCode()) { case -1325958191: if (name.equals("double")) { cls = (Class) Double.class; break; } break; case 104431: if (name.equals("int")) { cls = (Class) Integer.class; break; } break; case 3039496: if (name.equals(ProfileMeasurement.UNIT_BYTES)) { cls = (Class) Byte.class; break; } break; case 3052374: if (name.equals("char")) { cls = (Class) Character.class; break; } break; case 3327612: if (name.equals("long")) { cls = (Class) Long.class; break; } break; case 3625364: if (name.equals("void")) { cls = (Class) Void.class; break; } break; case 64711720: if (name.equals("boolean")) { cls = (Class) Boolean.class; break; } break; case 97526364: if (name.equals("float")) { cls = (Class) Float.class; break; } break; case 109413500: if (name.equals("short")) { cls = (Class) Short.class; break; } break; } } Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>"); return cls; } public static final KClass getKotlinClass(Class cls) { Intrinsics.checkNotNullParameter(cls, ""); return Reflection.getOrCreateKotlinClass(cls); } public static final Class getJavaClass(T t) { Intrinsics.checkNotNullParameter(t, ""); Class cls = (Class) t.getClass(); Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>"); return cls; } public static final Class> getRuntimeClassOfKClassInstance(KClass kClass) { Intrinsics.checkNotNullParameter(kClass, ""); Class> cls = (Class>) kClass.getClass(); Intrinsics.checkNotNull(cls, "null cannot be cast to non-null type java.lang.Class>>"); return cls; } public static final /* synthetic */ boolean isArrayOf(Object[] objArr) { Intrinsics.checkNotNullParameter(objArr, ""); Intrinsics.reifiedOperationMarker(4, ExifInterface.GPS_DIRECTION_TRUE); return Object.class.isAssignableFrom(objArr.getClass().getComponentType()); } public static final KClass getAnnotationClass(T t) { Intrinsics.checkNotNullParameter(t, ""); Class annotationType = t.annotationType(); Intrinsics.checkNotNullExpressionValue(annotationType, "annotationType(...)"); KClass kotlinClass = getKotlinClass(annotationType); Intrinsics.checkNotNull(kotlinClass, "null cannot be cast to non-null type kotlin.reflect.KClass>"); return kotlinClass; } private static final > Class getDeclaringJavaClass(Enum r1) { Intrinsics.checkNotNullParameter(r1, ""); Class declaringClass = r1.getDeclaringClass(); Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)"); return declaringClass; } }