Rabbit-R1/switch port/smali/smali_classes3/okhttp3/Cache$urls$1.smali

296 lines
7.1 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lokhttp3/Cache$urls$1;
.super Ljava/lang/Object;
.source "Cache.kt"
# interfaces
.implements Ljava/util/Iterator;
.implements Lkotlin/jvm/internal/markers/KMutableIterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/Cache;->urls()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/internal/markers/KMutableIterator;"
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nCache.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Cache.kt\nokhttp3/Cache$urls$1\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,783:1\n1#2:784\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\'\n\u0000\n\u0002\u0010)\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0000*\u0001\u0000\u0008\n\u0018\u00002\u0008\u0012\u0004\u0012\u00020\u00020\u0001J\t\u0010\t\u001a\u00020\u0004H\u0096\u0002J\t\u0010\n\u001a\u00020\u0002H\u0096\u0002J\u0008\u0010\u000b\u001a\u00020\u000cH\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0018\u0010\u0005\u001a\u000c\u0012\u0008\u0012\u00060\u0006R\u00020\u00070\u0001X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0008\u001a\u0004\u0018\u00010\u0002X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\r"
}
d2 = {
"okhttp3/Cache$urls$1",
"",
"",
"canRemove",
"",
"delegate",
"Lokhttp3/internal/cache/DiskLruCache$Snapshot;",
"Lokhttp3/internal/cache/DiskLruCache;",
"nextUrl",
"hasNext",
"next",
"remove",
"",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# instance fields
.field private canRemove:Z
.field private final delegate:Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Iterator<",
"Lokhttp3/internal/cache/DiskLruCache$Snapshot;",
">;"
}
.end annotation
.end field
.field private nextUrl:Ljava/lang/String;
.field final synthetic this$0:Lokhttp3/Cache;
# direct methods
.method constructor <init>(Lokhttp3/Cache;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lokhttp3/Cache$urls$1;->this$0:Lokhttp3/Cache;
.line 297
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 298
invoke-virtual {p1}, Lokhttp3/Cache;->getCache$okhttp()Lokhttp3/internal/cache/DiskLruCache;
move-result-object p1
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->snapshots()Ljava/util/Iterator;
move-result-object p1
iput-object p1, p0, Lokhttp3/Cache$urls$1;->delegate:Ljava/util/Iterator;
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 5
iget-object v0, p0, Lokhttp3/Cache$urls$1;->nextUrl:Ljava/lang/String;
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x0
iput-boolean v0, p0, Lokhttp3/Cache$urls$1;->canRemove:Z
:catch_0
iget-object v2, p0, Lokhttp3/Cache$urls$1;->delegate:Ljava/util/Iterator;
.line 306
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
:try_start_0
iget-object v2, p0, Lokhttp3/Cache$urls$1;->delegate:Ljava/util/Iterator;
.line 308
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/io/Closeable;
const/4 v3, 0x0
move-object v4, v3
check-cast v4, Ljava/lang/Throwable;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
move-object v4, v2
check-cast v4, Lokhttp3/internal/cache/DiskLruCache$Snapshot;
.line 309
invoke-virtual {v4, v0}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->getSource(I)Lokio/Source;
move-result-object v4
invoke-static {v4}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v4
.line 310
invoke-interface {v4}, Lokio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String;
move-result-object v4
iput-object v4, p0, Lokhttp3/Cache$urls$1;->nextUrl:Ljava/lang/String;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 311
:try_start_2
invoke-static {v2, v3}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
return v1
:catchall_0
move-exception v3
.line 308
:try_start_3
throw v3
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v4
:try_start_4
invoke-static {v2, v3}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v4
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
:cond_1
return v0
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 0
.line 297
invoke-virtual {p0}, Lokhttp3/Cache$urls$1;->next()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public next()Ljava/lang/String;
.locals 3
.line 323
invoke-virtual {p0}, Lokhttp3/Cache$urls$1;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/Cache$urls$1;->nextUrl:Ljava/lang/String;
.line 324
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v1, 0x0
.line 325
move-object v2, v1
check-cast v2, Ljava/lang/String;
iput-object v1, p0, Lokhttp3/Cache$urls$1;->nextUrl:Ljava/lang/String;
const/4 v1, 0x1
iput-boolean v1, p0, Lokhttp3/Cache$urls$1;->canRemove:Z
return-object v0
.line 323
:cond_0
new-instance p0, Ljava/util/NoSuchElementException;
invoke-direct {p0}, Ljava/util/NoSuchElementException;-><init>()V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public remove()V
.locals 1
iget-boolean v0, p0, Lokhttp3/Cache$urls$1;->canRemove:Z
if-eqz v0, :cond_0
iget-object p0, p0, Lokhttp3/Cache$urls$1;->delegate:Ljava/util/Iterator;
.line 332
invoke-interface {p0}, Ljava/util/Iterator;->remove()V
return-void
.line 331
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "remove() before next()"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method