CrackMe.apk
Download file
package kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.jvm.internal.impl.name.FqName;
/* compiled from: ReflectJavaAnnotationOwner.kt */
public final class ReflectJavaAnnotationOwnerKt {
public static final List<ReflectJavaAnnotation> getAnnotations(Annotation[] annotationArr) {
Intrinsics.checkNotNullParameter(annotationArr, "<this>");
Collection arrayList = new ArrayList(annotationArr.length);
int length = annotationArr.length;
int i = 0;
while (i < length) {
Annotation annotation = annotationArr[i];
i++;
arrayList.add(new ReflectJavaAnnotation(annotation));
}
return (List) arrayList;
}
public static final ReflectJavaAnnotation findAnnotation(Annotation[] annotationArr, FqName fqName) {
Annotation annotation;
Intrinsics.checkNotNullParameter(annotationArr, "<this>");
Intrinsics.checkNotNullParameter(fqName, "fqName");
int length = annotationArr.length;
int i = 0;
while (true) {
if (i >= length) {
annotation = null;
break;
}
annotation = annotationArr[i];
i++;
if (Intrinsics.areEqual((Object) ReflectClassUtilKt.getClassId(JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass(annotation))).asSingleFqName(), (Object) fqName)) {
break;
}
}
if (annotation == null) {
return null;
}
return new ReflectJavaAnnotation(annotation);
}
}
Download file