u.smali

.class public Lcom/subgraph/orchid/u;
.super Ljava/lang/Object;
.source "Revision.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static JA()Ljava/lang/String;
    .registers 2

    .prologue
    .line 1024
    const-class v0, Lcom/subgraph/orchid/u;

    const-string v1, "/build-revision"

    invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    .line 13
    if-nez v0, :cond_d

    .line 14
    const-string v0, ""

    .line 19
    :goto_c
    return-object v0

    .line 17
    :cond_d
    :try_start_d
    invoke-static {v0}, Lcom/subgraph/orchid/u;->h(Ljava/io/InputStream;)Ljava/lang/String;
    :try_end_10
    .catch Ljava/io/IOException; {:try_start_d .. :try_end_10} :catch_12

    move-result-object v0

    goto :goto_c

    .line 19
    :catch_12
    move-exception v0

    const-string v0, ""

    goto :goto_c
.end method

.method private static h(Ljava/io/InputStream;)Ljava/lang/String;
    .registers 3

    .prologue
    .line 29
    :try_start_0
    new-instance v0, Ljava/io/BufferedReader;

    new-instance v1, Ljava/io/InputStreamReader;

    invoke-direct {v1, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 30
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
    :try_end_d
    .catchall {:try_start_0 .. :try_end_d} :catchall_12

    move-result-object v0

    .line 32
    invoke-virtual {p0}, Ljava/io/InputStream;->close()V

    return-object v0

    :catchall_12
    move-exception v0

    invoke-virtual {p0}, Ljava/io/InputStream;->close()V

    throw v0
.end method