67 lines
1.2 KiB
Smali
67 lines
1.2 KiB
Smali
.class public abstract Lcom/google/common/collect/ImmutableCollection$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/common/collect/ImmutableCollection;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 389
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static expandedCapacity(II)I
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_2
|
|
|
|
shr-int/lit8 v0, p0, 0x1
|
|
|
|
add-int/2addr p0, v0
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
if-ge p0, p1, :cond_0
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
.line 380
|
|
invoke-static {p1}, Ljava/lang/Integer;->highestOneBit(I)I
|
|
|
|
move-result p0
|
|
|
|
shl-int/lit8 p0, p0, 0x1
|
|
|
|
:cond_0
|
|
if-gez p0, :cond_1
|
|
|
|
const p0, 0x7fffffff
|
|
|
|
:cond_1
|
|
return p0
|
|
|
|
.line 375
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
const-string p1, "cannot store more than MAX_VALUE elements"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
throw p0
|
|
.end method
|