apkfuckery/com.discord/smali/com/bugsnag/android/ThreadState$1.smali
2019-02-04 21:05:16 +01:00

82 lines
1.9 KiB
Smali

.class Lcom/bugsnag/android/ThreadState$1;
.super Ljava/lang/Object;
.source "ThreadState.java"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bugsnag/android/ThreadState;->toStream(Lcom/bugsnag/android/JsonStream;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/bugsnag/android/ThreadState;
# direct methods
.method constructor <init>(Lcom/bugsnag/android/ThreadState;)V
.locals 0
.param p1, "this$0" # Lcom/bugsnag/android/ThreadState;
.prologue
iput-object p1, p0, Lcom/bugsnag/android/ThreadState$1;->this$0:Lcom/bugsnag/android/ThreadState;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 4
.param p1, "a" # Ljava/lang/Object;
.param p2, "b" # Ljava/lang/Object;
.prologue
check-cast p1, Ljava/lang/Thread;
.end local p1 # "a":Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Thread;->getId()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
check-cast p2, Ljava/lang/Thread;
.end local p2 # "b":Ljava/lang/Object;
invoke-virtual {p2}, Ljava/lang/Thread;->getId()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/Long;->compareTo(Ljava/lang/Long;)I
move-result v0
return v0
.end method