You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
6.0 KiB
232 lines
6.0 KiB
.class Lcom/google/common/base/FinalizableReferenceQueue$DecoupledLoader; |
|
.super Ljava/lang/Object; |
|
.source "FinalizableReferenceQueue.java" |
|
|
|
# interfaces |
|
.implements Lcom/google/common/base/FinalizableReferenceQueue$FinalizerLoader; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/base/FinalizableReferenceQueue; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = "DecoupledLoader" |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final LOADING_ERROR:Ljava/lang/String; = "Could not load Finalizer in its own class loader.Loading Finalizer in the current class loader instead. As a result, you will not be ableto garbage collect this class loader. To support reclaiming this class loader, eitherresolve the underlying issue, or move Google Collections to your system class path." |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 274 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method getBaseUrl()Ljava/net/URL; |
|
.locals 5 |
|
|
|
.prologue |
|
.line 305 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v1, "com.google.common.base.internal.Finalizer" |
|
|
|
const/16 v2, 0x2e |
|
|
|
const/16 v3, 0x2f |
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(CC)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, ".class" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 306 |
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/ClassLoader;->getResource(Ljava/lang/String;)Ljava/net/URL; |
|
|
|
move-result-object v1 |
|
|
|
.line 307 |
|
if-nez v1, :cond_0 |
|
|
|
.line 308 |
|
new-instance v1, Ljava/io/FileNotFoundException; |
|
|
|
invoke-direct {v1, v0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v1 |
|
|
|
.line 312 |
|
:cond_0 |
|
invoke-virtual {v1}, Ljava/net/URL;->toString()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
.line 313 |
|
invoke-virtual {v2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v3 |
|
|
|
if-nez v3, :cond_1 |
|
|
|
.line 314 |
|
new-instance v0, Ljava/io/IOException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "Unsupported path style: " |
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 316 |
|
:cond_1 |
|
const/4 v3, 0x0 |
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I |
|
|
|
move-result v4 |
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I |
|
|
|
move-result v0 |
|
|
|
sub-int v0, v4, v0 |
|
|
|
invoke-virtual {v2, v3, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 317 |
|
new-instance v2, Ljava/net/URL; |
|
|
|
invoke-direct {v2, v1, v0}, Ljava/net/URL;-><init>(Ljava/net/URL;Ljava/lang/String;)V |
|
|
|
return-object v2 |
|
.end method |
|
|
|
.method public loadFinalizer()Ljava/lang/Class; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/lang/Class", |
|
"<*>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 292 |
|
:try_start_0 |
|
invoke-virtual {p0}, Lcom/google/common/base/FinalizableReferenceQueue$DecoupledLoader;->getBaseUrl()Ljava/net/URL; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/base/FinalizableReferenceQueue$DecoupledLoader;->newLoader(Ljava/net/URL;)Ljava/net/URLClassLoader; |
|
|
|
move-result-object v0 |
|
|
|
.line 293 |
|
const-string v1, "com.google.common.base.internal.Finalizer" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
move-result-object v0 |
|
|
|
.line 296 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 294 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 295 |
|
invoke-static {}, Lcom/google/common/base/FinalizableReferenceQueue;->access$000()Ljava/util/logging/Logger; |
|
|
|
move-result-object v1 |
|
|
|
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level; |
|
|
|
const-string v3, "Could not load Finalizer in its own class loader.Loading Finalizer in the current class loader instead. As a result, you will not be ableto garbage collect this class loader. To support reclaiming this class loader, eitherresolve the underlying issue, or move Google Collections to your system class path." |
|
|
|
invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V |
|
|
|
.line 296 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method newLoader(Ljava/net/URL;)Ljava/net/URLClassLoader; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 325 |
|
new-instance v0, Ljava/net/URLClassLoader; |
|
|
|
const/4 v1, 0x1 |
|
|
|
new-array v1, v1, [Ljava/net/URL; |
|
|
|
const/4 v2, 0x0 |
|
|
|
aput-object p1, v1, v2 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v0, v1, v2}, Ljava/net/URLClassLoader;-><init>([Ljava/net/URL;Ljava/lang/ClassLoader;)V |
|
|
|
return-object v0 |
|
.end method
|
|
|