Rabbit-R1/switch port/smali/smali_classes3/io/sentry/util/PropagationTargetsUtils.smali
2024-05-21 17:08:36 -04:00

111 lines
2.2 KiB
Smali

.class public final Lio/sentry/util/PropagationTargetsUtils;
.super Ljava/lang/Object;
.source "PropagationTargetsUtils.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 10
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static contain(Ljava/util/List;Ljava/lang/String;)Z
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
")Z"
}
.end annotation
.line 13
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
.line 16
:cond_0
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:catch_0
:cond_1
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_3
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 17
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v2
const/4 v3, 0x1
if-eqz v2, :cond_2
return v3
.line 21
:cond_2
:try_start_0
invoke-virtual {p1, v0}, Ljava/lang/String;->matches(Ljava/lang/String;)Z
move-result v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
if-eqz v0, :cond_1
return v3
:cond_3
return v1
.end method
.method public static contain(Ljava/util/List;Ljava/net/URI;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/net/URI;",
")Z"
}
.end annotation
.line 32
invoke-virtual {p1}, Ljava/net/URI;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {p0, p1}, Lio/sentry/util/PropagationTargetsUtils;->contain(Ljava/util/List;Ljava/lang/String;)Z
move-result p0
return p0
.end method