public final class com.google.common.base.Strings
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.base.Strings
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Strings;
public static java.lang.String nullToEmpty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.Platform.nullToEmpty:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
string
public static java.lang.String emptyToNull(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.Platform.emptyToNull:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
METHOD_RETURN
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
string
public static boolean isNullOrEmpty(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.Platform.stringIsNullOrEmpty:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
string
public static java.lang.String padStart(java.lang.String, int, char);
descriptor: (Ljava/lang/String;IC)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.String.length:()I
iload 1
if_icmplt 3
2: aload 0
areturn
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
iload 1
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 3
start local 3 4: aload 0
invokevirtual java.lang.String.length:()I
istore 4
start local 4 5: goto 8
6: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 1
if_icmplt 6
end local 4 9: aload 3
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 string Ljava/lang/String;
0 11 1 minLength I
0 11 2 padChar C
4 11 3 sb Ljava/lang/StringBuilder;
5 9 4 i I
MethodParameters:
Name Flags
string
minLength
padChar
public static java.lang.String padEnd(java.lang.String, int, char);
descriptor: (Ljava/lang/String;IC)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.String.length:()I
iload 1
if_icmplt 3
2: aload 0
areturn
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
iload 1
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 3
start local 3 4: aload 3
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 0
invokevirtual java.lang.String.length:()I
istore 4
start local 4 6: goto 9
7: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 1
if_icmplt 7
end local 4 10: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 string Ljava/lang/String;
0 11 1 minLength I
0 11 2 padChar C
4 11 3 sb Ljava/lang/StringBuilder;
6 10 4 i I
MethodParameters:
Name Flags
string
minLength
padChar
public static java.lang.String repeat(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 1
iconst_1
if_icmpgt 8
2: iload 1
iflt 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ldc "invalid count: %s"
iload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;I)V
5: iload 1
ifne 6
ldc ""
goto 7
StackMap locals:
StackMap stack:
6: aload 0
StackMap locals:
StackMap stack: java.lang.String
7: areturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 9: iload 2
i2l
iload 1
i2l
lmul
lstore 3
start local 3 10: lload 3
l2i
istore 5
start local 5 11: iload 5
i2l
lload 3
lcmp
ifeq 13
12: new java.lang.ArrayIndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "Required array size too large: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: int long int
StackMap stack:
iload 5
newarray 5
astore 6
start local 6 14: aload 0
iconst_0
iload 2
aload 6
iconst_0
invokevirtual java.lang.String.getChars:(II[CI)V
15: iload 2
istore 7
start local 7 16: goto 19
17: StackMap locals: char[] int
StackMap stack:
aload 6
iconst_0
aload 6
iload 7
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: iload 7
iconst_1
ishl
istore 7
StackMap locals:
StackMap stack:
19: iload 7
iload 5
iload 7
isub
if_icmplt 17
20: aload 6
iconst_0
aload 6
iload 7
iload 5
iload 7
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: new java.lang.String
dup
aload 6
invokespecial java.lang.String.<init>:([C)V
areturn
end local 7 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 string Ljava/lang/String;
0 22 1 count I
9 22 2 len I
10 22 3 longSize J
11 22 5 size I
14 22 6 array [C
16 22 7 n I
MethodParameters:
Name Flags
string
count
public static java.lang.String commonPrefix(java.lang.CharSequence, java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
invokeinterface java.lang.CharSequence.length:()I
aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic java.lang.Math.min:(II)I
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 6
5: StackMap locals: int int
StackMap stack:
iinc 3 1
6: StackMap locals:
StackMap stack:
iload 3
iload 2
if_icmpge 7
aload 0
iload 3
invokeinterface java.lang.CharSequence.charAt:(I)C
aload 1
iload 3
invokeinterface java.lang.CharSequence.charAt:(I)C
if_icmpeq 5
7: StackMap locals:
StackMap stack:
aload 0
iload 3
iconst_1
isub
invokestatic com.google.common.base.Strings.validSurrogatePairAt:(Ljava/lang/CharSequence;I)Z
ifne 8
aload 1
iload 3
iconst_1
isub
invokestatic com.google.common.base.Strings.validSurrogatePairAt:(Ljava/lang/CharSequence;I)Z
ifeq 9
8: StackMap locals:
StackMap stack:
iinc 3 -1
9: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 3
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 a Ljava/lang/CharSequence;
0 10 1 b Ljava/lang/CharSequence;
3 10 2 maxPrefixLength I
4 10 3 p I
MethodParameters:
Name Flags
a
b
public static java.lang.String commonSuffix(java.lang.CharSequence, java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
invokeinterface java.lang.CharSequence.length:()I
aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic java.lang.Math.min:(II)I
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 6
5: StackMap locals: int int
StackMap stack:
iinc 3 1
6: StackMap locals:
StackMap stack:
iload 3
iload 2
if_icmpge 7
aload 0
aload 0
invokeinterface java.lang.CharSequence.length:()I
iload 3
isub
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
aload 1
aload 1
invokeinterface java.lang.CharSequence.length:()I
iload 3
isub
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
if_icmpeq 5
7: StackMap locals:
StackMap stack:
aload 0
aload 0
invokeinterface java.lang.CharSequence.length:()I
iload 3
isub
iconst_1
isub
invokestatic com.google.common.base.Strings.validSurrogatePairAt:(Ljava/lang/CharSequence;I)Z
ifne 9
8: aload 1
aload 1
invokeinterface java.lang.CharSequence.length:()I
iload 3
isub
iconst_1
isub
invokestatic com.google.common.base.Strings.validSurrogatePairAt:(Ljava/lang/CharSequence;I)Z
ifeq 10
9: StackMap locals:
StackMap stack:
iinc 3 -1
10: StackMap locals:
StackMap stack:
aload 0
aload 0
invokeinterface java.lang.CharSequence.length:()I
iload 3
isub
aload 0
invokeinterface java.lang.CharSequence.length:()I
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 a Ljava/lang/CharSequence;
0 11 1 b Ljava/lang/CharSequence;
3 11 2 maxSuffixLength I
4 11 3 s I
MethodParameters:
Name Flags
a
b
static boolean validSurrogatePairAt(java.lang.CharSequence, int);
descriptor: (Ljava/lang/CharSequence;I)Z
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 5
1: iload 1
aload 0
invokeinterface java.lang.CharSequence.length:()I
iconst_2
isub
if_icmpgt 5
2: aload 0
iload 1
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifeq 5
3: aload 0
iload 1
iconst_1
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic java.lang.Character.isLowSurrogate:(C)Z
ifeq 5
4: iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 string Ljava/lang/CharSequence;
0 6 1 index I
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
string
index
public static java.lang.String lenientFormat(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 0
1: aload 1
ifnonnull 4
2: iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "(Object[])null"
aastore
astore 1
3: goto 9
4: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 5: goto 8
6: StackMap locals: int
StackMap stack:
aload 1
iload 2
aload 1
iload 2
aaload
invokestatic com.google.common.base.Strings.lenientToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
7: iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 1
arraylength
if_icmplt 6
end local 2 9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.String.length:()I
bipush 16
aload 1
arraylength
imul
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 10: iconst_0
istore 3
start local 3 11: iconst_0
istore 4
start local 4 12: goto 19
13: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 0
ldc "%s"
iload 3
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
istore 5
start local 5 14: iload 5
iconst_m1
if_icmpne 16
15: goto 20
16: StackMap locals: int
StackMap stack:
aload 2
aload 0
iload 3
iload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
17: aload 2
aload 1
iload 4
iinc 4 1
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
18: iload 5
iconst_2
iadd
istore 3
end local 5 19: StackMap locals:
StackMap stack:
iload 4
aload 1
arraylength
if_icmplt 13
20: StackMap locals:
StackMap stack:
aload 2
aload 0
iload 3
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
21: iload 4
aload 1
arraylength
if_icmpge 29
22: aload 2
ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
23: aload 2
aload 1
iload 4
iinc 4 1
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
24: goto 27
25: StackMap locals:
StackMap stack:
aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
26: aload 2
aload 1
iload 4
iinc 4 1
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
27: StackMap locals:
StackMap stack:
iload 4
aload 1
arraylength
if_icmplt 25
28: aload 2
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
29: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 template Ljava/lang/String;
0 30 1 args [Ljava/lang/Object;
5 9 2 i I
10 30 2 builder Ljava/lang/StringBuilder;
11 30 3 templateStart I
12 30 4 i I
14 19 5 placeholderStart I
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
METHOD_FORMAL_PARAMETER, location=[ARRAY_ELEMENT]
org.checkerframework.checker.nullness.qual.Nullable()
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
template
args
private static java.lang.String lenientToString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: ldc "null"
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 5: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 64
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: astore 2
start local 2 7: ldc "com.google.common.base.Strings"
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
8: getstatic java.util.logging.Level.WARNING:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Exception during lenientFormat for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
9: new java.lang.StringBuilder
dup
ldc "<"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " threw "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 o Ljava/lang/Object;
5 10 1 e Ljava/lang/Exception;
7 10 2 objectToString Ljava/lang/String;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
o
}
SourceFile: "Strings.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible()