ADD week 5
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/AccessibleLateinitPropertyLiteral;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.VALUE_PARAMETER})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface AccessibleLateinitPropertyLiteral {
|
||||
}
|
14
02-Easy5/E5/sources/kotlin/internal/ContractsDsl.java
Normal file
14
02-Easy5/E5/sources/kotlin/internal/ContractsDsl.java
Normal file
@ -0,0 +1,14 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/ContractsDsl;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface ContractsDsl {
|
||||
}
|
19
02-Easy5/E5/sources/kotlin/internal/DynamicExtension.java
Normal file
19
02-Easy5/E5/sources/kotlin/internal/DynamicExtension.java
Normal file
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.METHOD})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/DynamicExtension;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface DynamicExtension {
|
||||
}
|
18
02-Easy5/E5/sources/kotlin/internal/Exact.java
Normal file
18
02-Easy5/E5/sources/kotlin/internal/Exact.java
Normal file
@ -0,0 +1,18 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/Exact;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Exact {
|
||||
}
|
19
02-Easy5/E5/sources/kotlin/internal/HidesMembers.java
Normal file
19
02-Easy5/E5/sources/kotlin/internal/HidesMembers.java
Normal file
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.METHOD})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/HidesMembers;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface HidesMembers {
|
||||
}
|
19
02-Easy5/E5/sources/kotlin/internal/InlineOnly.java
Normal file
19
02-Easy5/E5/sources/kotlin/internal/InlineOnly.java
Normal file
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.METHOD})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/InlineOnly;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface InlineOnly {
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: InternalAnnotations.kt */
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/IntrinsicConstEvaluation;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface IntrinsicConstEvaluation {
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/LowPriorityInOverloadResolution;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface LowPriorityInOverloadResolution {
|
||||
}
|
18
02-Easy5/E5/sources/kotlin/internal/NoInfer.java
Normal file
18
02-Easy5/E5/sources/kotlin/internal/NoInfer.java
Normal file
@ -0,0 +1,18 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/NoInfer;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface NoInfer {
|
||||
}
|
18
02-Easy5/E5/sources/kotlin/internal/OnlyInputTypes.java
Normal file
18
02-Easy5/E5/sources/kotlin/internal/OnlyInputTypes.java
Normal file
@ -0,0 +1,18 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/OnlyInputTypes;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE_PARAMETER})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface OnlyInputTypes {
|
||||
}
|
19
02-Easy5/E5/sources/kotlin/internal/PlatformDependent.java
Normal file
19
02-Easy5/E5/sources/kotlin/internal/PlatformDependent.java
Normal file
@ -0,0 +1,19 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: InternalAnnotations.kt */
|
||||
@Target({ElementType.METHOD})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/PlatformDependent;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface PlatformDependent {
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
import java.util.regex.MatchResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.random.FallbackThreadLocalRandom;
|
||||
import kotlin.random.Random;
|
||||
import kotlin.text.MatchGroup;
|
||||
|
||||
/* compiled from: PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u0012B\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\b\u001a\u00020\tH\u0016J\u001a\u0010\n\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0016J\u0016\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00060\u00112\u0006\u0010\u0007\u001a\u00020\u0006H\u0016¨\u0006\u0013"}, d2 = {"Lkotlin/internal/PlatformImplementations;", "", "()V", "addSuppressed", "", "cause", "", "exception", "defaultPlatformRandom", "Lkotlin/random/Random;", "getMatchResultNamedGroup", "Lkotlin/text/MatchGroup;", "matchResult", "Ljava/util/regex/MatchResult;", "name", "", "getSuppressed", "", "ReflectThrowable", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public class PlatformImplementations {
|
||||
|
||||
/* compiled from: PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u0006"}, d2 = {"Lkotlin/internal/PlatformImplementations$ReflectThrowable;", "", "()V", "addSuppressed", "Ljava/lang/reflect/Method;", "getSuppressed", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private static final class ReflectThrowable {
|
||||
public static final ReflectThrowable INSTANCE = new ReflectThrowable();
|
||||
public static final Method addSuppressed;
|
||||
public static final Method getSuppressed;
|
||||
|
||||
private ReflectThrowable() {
|
||||
}
|
||||
|
||||
static {
|
||||
Method method;
|
||||
Method method2;
|
||||
Method[] throwableMethods = Throwable.class.getMethods();
|
||||
Intrinsics.checkNotNullExpressionValue(throwableMethods, "throwableMethods");
|
||||
int length = throwableMethods.length;
|
||||
int i = 0;
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
method = null;
|
||||
if (i2 >= length) {
|
||||
method2 = null;
|
||||
break;
|
||||
}
|
||||
method2 = throwableMethods[i2];
|
||||
if (Intrinsics.areEqual(method2.getName(), "addSuppressed")) {
|
||||
Class<?>[] parameterTypes = method2.getParameterTypes();
|
||||
Intrinsics.checkNotNullExpressionValue(parameterTypes, "it.parameterTypes");
|
||||
if (Intrinsics.areEqual(ArraysKt.singleOrNull(parameterTypes), Throwable.class)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
i2++;
|
||||
}
|
||||
addSuppressed = method2;
|
||||
int length2 = throwableMethods.length;
|
||||
while (true) {
|
||||
if (i >= length2) {
|
||||
break;
|
||||
}
|
||||
Method method3 = throwableMethods[i];
|
||||
if (Intrinsics.areEqual(method3.getName(), "getSuppressed")) {
|
||||
method = method3;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
getSuppressed = method;
|
||||
}
|
||||
}
|
||||
|
||||
public void addSuppressed(Throwable cause, Throwable exception) {
|
||||
Intrinsics.checkNotNullParameter(cause, "cause");
|
||||
Intrinsics.checkNotNullParameter(exception, "exception");
|
||||
Method method = ReflectThrowable.addSuppressed;
|
||||
if (method != null) {
|
||||
method.invoke(cause, exception);
|
||||
}
|
||||
}
|
||||
|
||||
public List<Throwable> getSuppressed(Throwable exception) {
|
||||
Object invoke;
|
||||
List<Throwable> asList;
|
||||
Intrinsics.checkNotNullParameter(exception, "exception");
|
||||
Method method = ReflectThrowable.getSuppressed;
|
||||
return (method == null || (invoke = method.invoke(exception, new Object[0])) == null || (asList = ArraysKt.asList((Throwable[]) invoke)) == null) ? CollectionsKt.emptyList() : asList;
|
||||
}
|
||||
|
||||
public MatchGroup getMatchResultNamedGroup(MatchResult matchResult, String name) {
|
||||
Intrinsics.checkNotNullParameter(matchResult, "matchResult");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
throw new UnsupportedOperationException("Retrieving groups by name is not supported on this platform.");
|
||||
}
|
||||
|
||||
public Random defaultPlatformRandom() {
|
||||
return new FallbackThreadLocalRandom();
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import kotlin.KotlinVersion;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0003\u001a \u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0007\u001a\u00020\u0005H\u0001\u001a\"\u0010\b\u001a\u0002H\t\"\n\b\u0000\u0010\t\u0018\u0001*\u00020\n2\u0006\u0010\u000b\u001a\u00020\nH\u0083\b¢\u0006\u0002\u0010\f\"\u0010\u0010\u0000\u001a\u00020\u00018\u0000X\u0081\u0004¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"IMPLEMENTATIONS", "Lkotlin/internal/PlatformImplementations;", "apiVersionIsAtLeast", "", "major", "", "minor", "patch", "castToBaseType", "T", "", "instance", "(Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class PlatformImplementationsKt {
|
||||
public static final PlatformImplementations IMPLEMENTATIONS;
|
||||
|
||||
static {
|
||||
PlatformImplementations platformImplementations;
|
||||
Object newInstance;
|
||||
try {
|
||||
try {
|
||||
newInstance = Class.forName("kotlin.internal.jdk8.JDK8PlatformImplementations").newInstance();
|
||||
Intrinsics.checkNotNullExpressionValue(newInstance, "forName(\"kotlin.internal…entations\").newInstance()");
|
||||
try {
|
||||
} catch (ClassCastException e) {
|
||||
ClassLoader classLoader = newInstance.getClass().getClassLoader();
|
||||
ClassLoader classLoader2 = PlatformImplementations.class.getClassLoader();
|
||||
if (Intrinsics.areEqual(classLoader, classLoader2)) {
|
||||
throw e;
|
||||
}
|
||||
throw new ClassNotFoundException("Instance class was loaded from a different classloader: " + classLoader + ", base type classloader: " + classLoader2, e);
|
||||
}
|
||||
} catch (ClassNotFoundException unused) {
|
||||
Object newInstance2 = Class.forName("kotlin.internal.JRE8PlatformImplementations").newInstance();
|
||||
Intrinsics.checkNotNullExpressionValue(newInstance2, "forName(\"kotlin.internal…entations\").newInstance()");
|
||||
try {
|
||||
try {
|
||||
if (newInstance2 == null) {
|
||||
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
||||
}
|
||||
platformImplementations = (PlatformImplementations) newInstance2;
|
||||
} catch (ClassNotFoundException unused2) {
|
||||
Object newInstance3 = Class.forName("kotlin.internal.JRE7PlatformImplementations").newInstance();
|
||||
Intrinsics.checkNotNullExpressionValue(newInstance3, "forName(\"kotlin.internal…entations\").newInstance()");
|
||||
try {
|
||||
if (newInstance3 == null) {
|
||||
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
||||
}
|
||||
platformImplementations = (PlatformImplementations) newInstance3;
|
||||
} catch (ClassCastException e2) {
|
||||
ClassLoader classLoader3 = newInstance3.getClass().getClassLoader();
|
||||
ClassLoader classLoader4 = PlatformImplementations.class.getClassLoader();
|
||||
if (Intrinsics.areEqual(classLoader3, classLoader4)) {
|
||||
throw e2;
|
||||
}
|
||||
throw new ClassNotFoundException("Instance class was loaded from a different classloader: " + classLoader3 + ", base type classloader: " + classLoader4, e2);
|
||||
}
|
||||
}
|
||||
} catch (ClassCastException e3) {
|
||||
ClassLoader classLoader5 = newInstance2.getClass().getClassLoader();
|
||||
ClassLoader classLoader6 = PlatformImplementations.class.getClassLoader();
|
||||
if (Intrinsics.areEqual(classLoader5, classLoader6)) {
|
||||
throw e3;
|
||||
}
|
||||
throw new ClassNotFoundException("Instance class was loaded from a different classloader: " + classLoader5 + ", base type classloader: " + classLoader6, e3);
|
||||
}
|
||||
}
|
||||
} catch (ClassNotFoundException unused3) {
|
||||
Object newInstance4 = Class.forName("kotlin.internal.jdk7.JDK7PlatformImplementations").newInstance();
|
||||
Intrinsics.checkNotNullExpressionValue(newInstance4, "forName(\"kotlin.internal…entations\").newInstance()");
|
||||
try {
|
||||
try {
|
||||
if (newInstance4 == null) {
|
||||
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
||||
}
|
||||
platformImplementations = (PlatformImplementations) newInstance4;
|
||||
} catch (ClassNotFoundException unused4) {
|
||||
platformImplementations = new PlatformImplementations();
|
||||
}
|
||||
} catch (ClassCastException e4) {
|
||||
ClassLoader classLoader7 = newInstance4.getClass().getClassLoader();
|
||||
ClassLoader classLoader8 = PlatformImplementations.class.getClassLoader();
|
||||
if (Intrinsics.areEqual(classLoader7, classLoader8)) {
|
||||
throw e4;
|
||||
}
|
||||
throw new ClassNotFoundException("Instance class was loaded from a different classloader: " + classLoader7 + ", base type classloader: " + classLoader8, e4);
|
||||
}
|
||||
}
|
||||
if (newInstance == null) {
|
||||
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
||||
}
|
||||
platformImplementations = (PlatformImplementations) newInstance;
|
||||
IMPLEMENTATIONS = platformImplementations;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final /* synthetic */ <T> T castToBaseType(Object obj) {
|
||||
try {
|
||||
Intrinsics.reifiedOperationMarker(1, "T");
|
||||
Object obj2 = obj;
|
||||
return obj;
|
||||
} catch (ClassCastException e) {
|
||||
ClassLoader classLoader = obj.getClass().getClassLoader();
|
||||
Intrinsics.reifiedOperationMarker(4, "T");
|
||||
ClassLoader classLoader2 = Object.class.getClassLoader();
|
||||
if (!Intrinsics.areEqual(classLoader, classLoader2)) {
|
||||
throw new ClassNotFoundException("Instance class was loaded from a different classloader: " + classLoader + ", base type classloader: " + classLoader2, e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public static final boolean apiVersionIsAtLeast(int i, int i2, int i3) {
|
||||
return KotlinVersion.CURRENT.isAtLeast(i, i2, i3);
|
||||
}
|
||||
}
|
46
02-Easy5/E5/sources/kotlin/internal/ProgressionUtilKt.java
Normal file
46
02-Easy5/E5/sources/kotlin/internal/ProgressionUtilKt.java
Normal file
@ -0,0 +1,46 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: progressionUtil.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0006\u001a \u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0002\u001a \u0010\u0000\u001a\u00020\u00052\u0006\u0010\u0002\u001a\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005H\u0002\u001a \u0010\u0006\u001a\u00020\u00012\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\b\u001a\u00020\u00012\u0006\u0010\t\u001a\u00020\u0001H\u0001\u001a \u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0007\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\u0005H\u0001\u001a\u0018\u0010\n\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0001H\u0002\u001a\u0018\u0010\n\u001a\u00020\u00052\u0006\u0010\u0002\u001a\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u0005H\u0002¨\u0006\u000b"}, d2 = {"differenceModulo", "", "a", "b", "c", "", "getProgressionLastElement", "start", "end", "step", "mod", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ProgressionUtilKt {
|
||||
private static final int mod(int i, int i2) {
|
||||
int i3 = i % i2;
|
||||
return i3 >= 0 ? i3 : i3 + i2;
|
||||
}
|
||||
|
||||
private static final long mod(long j, long j2) {
|
||||
long j3 = j % j2;
|
||||
return j3 >= 0 ? j3 : j3 + j2;
|
||||
}
|
||||
|
||||
private static final int differenceModulo(int i, int i2, int i3) {
|
||||
return mod(mod(i, i3) - mod(i2, i3), i3);
|
||||
}
|
||||
|
||||
private static final long differenceModulo(long j, long j2, long j3) {
|
||||
return mod(mod(j, j3) - mod(j2, j3), j3);
|
||||
}
|
||||
|
||||
public static final int getProgressionLastElement(int i, int i2, int i3) {
|
||||
if (i3 > 0) {
|
||||
return i >= i2 ? i2 : i2 - differenceModulo(i2, i, i3);
|
||||
}
|
||||
if (i3 < 0) {
|
||||
return i <= i2 ? i2 : i2 + differenceModulo(i, i2, -i3);
|
||||
}
|
||||
throw new IllegalArgumentException("Step is zero.");
|
||||
}
|
||||
|
||||
public static final long getProgressionLastElement(long j, long j2, long j3) {
|
||||
if (j3 > 0) {
|
||||
return j >= j2 ? j2 : j2 - differenceModulo(j2, j, j3);
|
||||
}
|
||||
if (j3 < 0) {
|
||||
return j <= j2 ? j2 : j2 + differenceModulo(j, j2, -j3);
|
||||
}
|
||||
throw new IllegalArgumentException("Step is zero.");
|
||||
}
|
||||
}
|
18
02-Easy5/E5/sources/kotlin/internal/PureReifiable.java
Normal file
18
02-Easy5/E5/sources/kotlin/internal/PureReifiable.java
Normal file
@ -0,0 +1,18 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
|
||||
/* compiled from: InternalAnnotations.kt */
|
||||
@Target({})
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0081\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/internal/PureReifiable;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE_PARAMETER})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface PureReifiable {
|
||||
}
|
45
02-Easy5/E5/sources/kotlin/internal/RequireKotlin.java
Normal file
45
02-Easy5/E5/sources/kotlin/internal/RequireKotlin.java
Normal file
@ -0,0 +1,45 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
import kotlin.annotation.Repeatable;
|
||||
import kotlin.jvm.internal.RepeatableContainer;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.TYPEALIAS})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.SOURCE)
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\b\u0081\u0002\u0018\u00002\u00020\u0001B0\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0006\u0012\b\b\u0002\u0010\u0007\u001a\u00020\b\u0012\b\b\u0002\u0010\t\u001a\u00020\nR\u000f\u0010\t\u001a\u00020\n¢\u0006\u0006\u001a\u0004\b\t\u0010\u000bR\u000f\u0010\u0005\u001a\u00020\u0006¢\u0006\u0006\u001a\u0004\b\u0005\u0010\fR\u000f\u0010\u0004\u001a\u00020\u0003¢\u0006\u0006\u001a\u0004\b\u0004\u0010\rR\u000f\u0010\u0002\u001a\u00020\u0003¢\u0006\u0006\u001a\u0004\b\u0002\u0010\rR\u000f\u0010\u0007\u001a\u00020\b¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u000e¨\u0006\u000f"}, d2 = {"Lkotlin/internal/RequireKotlin;", "", "version", "", "message", "level", "Lkotlin/DeprecationLevel;", "versionKind", "Lkotlin/internal/RequireKotlinVersionKind;", "errorCode", "", "()I", "()Lkotlin/DeprecationLevel;", "()Ljava/lang/String;", "()Lkotlin/internal/RequireKotlinVersionKind;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
@Repeatable
|
||||
@java.lang.annotation.Repeatable(Container.class)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface RequireKotlin {
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.TYPEALIAS})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.SOURCE)
|
||||
@RepeatableContainer
|
||||
public @interface Container {
|
||||
RequireKotlin[] value();
|
||||
}
|
||||
|
||||
int errorCode() default -1;
|
||||
|
||||
DeprecationLevel level() default DeprecationLevel.ERROR;
|
||||
|
||||
String message() default "";
|
||||
|
||||
String version();
|
||||
|
||||
RequireKotlinVersionKind versionKind() default RequireKotlinVersionKind.LANGUAGE_VERSION;
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Annotations.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0081\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/internal/RequireKotlinVersionKind;", "", "(Ljava/lang/String;I)V", "LANGUAGE_VERSION", "COMPILER_VERSION", "API_VERSION", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public enum RequireKotlinVersionKind {
|
||||
LANGUAGE_VERSION,
|
||||
COMPILER_VERSION,
|
||||
API_VERSION
|
||||
}
|
61
02-Easy5/E5/sources/kotlin/internal/UProgressionUtilKt.java
Normal file
61
02-Easy5/E5/sources/kotlin/internal/UProgressionUtilKt.java
Normal file
@ -0,0 +1,61 @@
|
||||
package kotlin.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.UByte$$ExternalSyntheticBackport0;
|
||||
import kotlin.UInt;
|
||||
import kotlin.ULong;
|
||||
|
||||
/* compiled from: UProgressionUtil.kt */
|
||||
@Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\u001a*\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0002ø\u0001\u0000¢\u0006\u0004\b\u0005\u0010\u0006\u001a*\u0010\u0000\u001a\u00020\u00072\u0006\u0010\u0002\u001a\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u00072\u0006\u0010\u0004\u001a\u00020\u0007H\u0002ø\u0001\u0000¢\u0006\u0004\b\b\u0010\t\u001a*\u0010\n\u001a\u00020\u00012\u0006\u0010\u000b\u001a\u00020\u00012\u0006\u0010\f\u001a\u00020\u00012\u0006\u0010\r\u001a\u00020\u000eH\u0001ø\u0001\u0000¢\u0006\u0004\b\u000f\u0010\u0006\u001a*\u0010\n\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\u00072\u0006\u0010\r\u001a\u00020\u0010H\u0001ø\u0001\u0000¢\u0006\u0004\b\u0011\u0010\t\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0012"}, d2 = {"differenceModulo", "Lkotlin/UInt;", "a", "b", "c", "differenceModulo-WZ9TVnA", "(III)I", "Lkotlin/ULong;", "differenceModulo-sambcqE", "(JJJ)J", "getProgressionLastElement", "start", "end", "step", "", "getProgressionLastElement-Nkh28Cs", "", "getProgressionLastElement-7ftBX0g", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class UProgressionUtilKt {
|
||||
/* renamed from: differenceModulo-WZ9TVnA, reason: not valid java name */
|
||||
private static final int m1507differenceModuloWZ9TVnA(int i, int i2, int i3) {
|
||||
int compare;
|
||||
int m = UByte$$ExternalSyntheticBackport0.m(i, i3);
|
||||
int m2 = UByte$$ExternalSyntheticBackport0.m(i2, i3);
|
||||
compare = Integer.compare(m ^ Integer.MIN_VALUE, m2 ^ Integer.MIN_VALUE);
|
||||
int m384constructorimpl = UInt.m384constructorimpl(m - m2);
|
||||
return compare >= 0 ? m384constructorimpl : UInt.m384constructorimpl(m384constructorimpl + i3);
|
||||
}
|
||||
|
||||
/* renamed from: differenceModulo-sambcqE, reason: not valid java name */
|
||||
private static final long m1508differenceModulosambcqE(long j, long j2, long j3) {
|
||||
int compare;
|
||||
long m357m = UByte$$ExternalSyntheticBackport0.m357m(j, j3);
|
||||
long m357m2 = UByte$$ExternalSyntheticBackport0.m357m(j2, j3);
|
||||
compare = Long.compare(m357m ^ Long.MIN_VALUE, m357m2 ^ Long.MIN_VALUE);
|
||||
long m463constructorimpl = ULong.m463constructorimpl(m357m - m357m2);
|
||||
return compare >= 0 ? m463constructorimpl : ULong.m463constructorimpl(m463constructorimpl + j3);
|
||||
}
|
||||
|
||||
/* renamed from: getProgressionLastElement-Nkh28Cs, reason: not valid java name */
|
||||
public static final int m1510getProgressionLastElementNkh28Cs(int i, int i2, int i3) {
|
||||
int compare;
|
||||
int compare2;
|
||||
if (i3 > 0) {
|
||||
compare2 = Integer.compare(i ^ Integer.MIN_VALUE, i2 ^ Integer.MIN_VALUE);
|
||||
return compare2 >= 0 ? i2 : UInt.m384constructorimpl(i2 - m1507differenceModuloWZ9TVnA(i2, i, UInt.m384constructorimpl(i3)));
|
||||
}
|
||||
if (i3 < 0) {
|
||||
compare = Integer.compare(i ^ Integer.MIN_VALUE, i2 ^ Integer.MIN_VALUE);
|
||||
return compare <= 0 ? i2 : UInt.m384constructorimpl(i2 + m1507differenceModuloWZ9TVnA(i, i2, UInt.m384constructorimpl(-i3)));
|
||||
}
|
||||
throw new IllegalArgumentException("Step is zero.");
|
||||
}
|
||||
|
||||
/* renamed from: getProgressionLastElement-7ftBX0g, reason: not valid java name */
|
||||
public static final long m1509getProgressionLastElement7ftBX0g(long j, long j2, long j3) {
|
||||
int compare;
|
||||
int compare2;
|
||||
if (j3 > 0) {
|
||||
compare2 = Long.compare(j ^ Long.MIN_VALUE, j2 ^ Long.MIN_VALUE);
|
||||
return compare2 >= 0 ? j2 : ULong.m463constructorimpl(j2 - m1508differenceModulosambcqE(j2, j, ULong.m463constructorimpl(j3)));
|
||||
}
|
||||
if (j3 < 0) {
|
||||
compare = Long.compare(j ^ Long.MIN_VALUE, j2 ^ Long.MIN_VALUE);
|
||||
return compare <= 0 ? j2 : ULong.m463constructorimpl(j2 + m1508differenceModulosambcqE(j, j2, ULong.m463constructorimpl(-j3)));
|
||||
}
|
||||
throw new IllegalArgumentException("Step is zero.");
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package kotlin.internal.jdk7;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.internal.PlatformImplementations;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: JDK7PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u000eB\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\u0016\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00060\t2\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002¨\u0006\u000f"}, d2 = {"Lkotlin/internal/jdk7/JDK7PlatformImplementations;", "Lkotlin/internal/PlatformImplementations;", "()V", "addSuppressed", "", "cause", "", "exception", "getSuppressed", "", "sdkIsNullOrAtLeast", "", "version", "", "ReflectSdkVersion", "kotlin-stdlib-jdk7"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public class JDK7PlatformImplementations extends PlatformImplementations {
|
||||
|
||||
/* compiled from: JDK7PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0004\n\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion;", "", "()V", "sdkVersion", "", "Ljava/lang/Integer;", "kotlin-stdlib-jdk7"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private static final class ReflectSdkVersion {
|
||||
public static final ReflectSdkVersion INSTANCE = new ReflectSdkVersion();
|
||||
public static final Integer sdkVersion;
|
||||
|
||||
private ReflectSdkVersion() {
|
||||
}
|
||||
|
||||
static {
|
||||
Integer num;
|
||||
Object obj;
|
||||
Integer num2 = null;
|
||||
try {
|
||||
obj = Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null);
|
||||
} catch (Throwable unused) {
|
||||
}
|
||||
if (obj instanceof Integer) {
|
||||
num = (Integer) obj;
|
||||
if (num != null && num.intValue() > 0) {
|
||||
num2 = num;
|
||||
}
|
||||
sdkVersion = num2;
|
||||
}
|
||||
num = null;
|
||||
if (num != null) {
|
||||
num2 = num;
|
||||
}
|
||||
sdkVersion = num2;
|
||||
}
|
||||
}
|
||||
|
||||
private final boolean sdkIsNullOrAtLeast(int version) {
|
||||
return ReflectSdkVersion.sdkVersion == null || ReflectSdkVersion.sdkVersion.intValue() >= version;
|
||||
}
|
||||
|
||||
@Override // kotlin.internal.PlatformImplementations
|
||||
public void addSuppressed(Throwable cause, Throwable exception) {
|
||||
Intrinsics.checkNotNullParameter(cause, "cause");
|
||||
Intrinsics.checkNotNullParameter(exception, "exception");
|
||||
if (sdkIsNullOrAtLeast(19)) {
|
||||
cause.addSuppressed(exception);
|
||||
} else {
|
||||
super.addSuppressed(cause, exception);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.internal.PlatformImplementations
|
||||
public List<Throwable> getSuppressed(Throwable exception) {
|
||||
Intrinsics.checkNotNullParameter(exception, "exception");
|
||||
if (sdkIsNullOrAtLeast(19)) {
|
||||
Throwable[] suppressed = exception.getSuppressed();
|
||||
Intrinsics.checkNotNullExpressionValue(suppressed, "exception.suppressed");
|
||||
return ArraysKt.asList(suppressed);
|
||||
}
|
||||
return super.getSuppressed(exception);
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package kotlin.internal.jdk8;
|
||||
|
||||
import java.util.regex.MatchResult;
|
||||
import java.util.regex.Matcher;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.internal.jdk7.JDK7PlatformImplementations;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.random.Random;
|
||||
import kotlin.random.jdk8.PlatformThreadLocalRandom;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.text.MatchGroup;
|
||||
|
||||
/* compiled from: JDK8PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u000fB\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H\u0016J\u001a\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nH\u0016J\u0010\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eH\u0002¨\u0006\u0010"}, d2 = {"Lkotlin/internal/jdk8/JDK8PlatformImplementations;", "Lkotlin/internal/jdk7/JDK7PlatformImplementations;", "()V", "defaultPlatformRandom", "Lkotlin/random/Random;", "getMatchResultNamedGroup", "Lkotlin/text/MatchGroup;", "matchResult", "Ljava/util/regex/MatchResult;", "name", "", "sdkIsNullOrAtLeast", "", "version", "", "ReflectSdkVersion", "kotlin-stdlib-jdk8"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public class JDK8PlatformImplementations extends JDK7PlatformImplementations {
|
||||
|
||||
/* compiled from: JDK8PlatformImplementations.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0004\n\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/internal/jdk8/JDK8PlatformImplementations$ReflectSdkVersion;", "", "()V", "sdkVersion", "", "Ljava/lang/Integer;", "kotlin-stdlib-jdk8"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private static final class ReflectSdkVersion {
|
||||
public static final ReflectSdkVersion INSTANCE = new ReflectSdkVersion();
|
||||
public static final Integer sdkVersion;
|
||||
|
||||
private ReflectSdkVersion() {
|
||||
}
|
||||
|
||||
static {
|
||||
Integer num;
|
||||
Object obj;
|
||||
Integer num2 = null;
|
||||
try {
|
||||
obj = Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null);
|
||||
} catch (Throwable unused) {
|
||||
}
|
||||
if (obj instanceof Integer) {
|
||||
num = (Integer) obj;
|
||||
if (num != null && num.intValue() > 0) {
|
||||
num2 = num;
|
||||
}
|
||||
sdkVersion = num2;
|
||||
}
|
||||
num = null;
|
||||
if (num != null) {
|
||||
num2 = num;
|
||||
}
|
||||
sdkVersion = num2;
|
||||
}
|
||||
}
|
||||
|
||||
private final boolean sdkIsNullOrAtLeast(int version) {
|
||||
return ReflectSdkVersion.sdkVersion == null || ReflectSdkVersion.sdkVersion.intValue() >= version;
|
||||
}
|
||||
|
||||
@Override // kotlin.internal.PlatformImplementations
|
||||
public MatchGroup getMatchResultNamedGroup(MatchResult matchResult, String name) {
|
||||
int start;
|
||||
int end;
|
||||
String group;
|
||||
Intrinsics.checkNotNullParameter(matchResult, "matchResult");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Matcher matcher = matchResult instanceof Matcher ? (Matcher) matchResult : null;
|
||||
if (matcher == null) {
|
||||
throw new UnsupportedOperationException("Retrieving groups by name is not supported on this platform.");
|
||||
}
|
||||
start = matcher.start(name);
|
||||
end = matcher.end(name);
|
||||
IntRange intRange = new IntRange(start, end - 1);
|
||||
if (intRange.getStart().intValue() < 0) {
|
||||
return null;
|
||||
}
|
||||
group = matcher.group(name);
|
||||
Intrinsics.checkNotNullExpressionValue(group, "matcher.group(name)");
|
||||
return new MatchGroup(group, intRange);
|
||||
}
|
||||
|
||||
@Override // kotlin.internal.PlatformImplementations
|
||||
public Random defaultPlatformRandom() {
|
||||
return sdkIsNullOrAtLeast(34) ? new PlatformThreadLocalRandom() : super.defaultPlatformRandom();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user