public class com.sun.tools.javac.util.ArrayUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.javac.util.ArrayUtils
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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/sun/tools/javac/util/ArrayUtils;
private static int calculateNewLength(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: goto 2
1: StackMap locals:
StackMap stack:
iload 0
iconst_2
imul
istore 0
2: StackMap locals:
StackMap stack:
iload 0
iload 1
iconst_1
iadd
if_icmplt 1
3: iload 0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 currentLength I
0 4 1 maxIndex I
MethodParameters:
Name Flags
currentLength
maxIndex
public static <T> T[] ensureCapacity(T[], );
descriptor: ([Ljava/lang/Object;I)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
arraylength
if_icmpge 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 1
invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
istore 2
start local 2 3: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
iload 2
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 4: aload 0
iconst_0
aload 3
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 array [Ljava/lang/Object;
0 6 1 maxIndex I
3 6 2 newLength I
4 6 3 result [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;I)[TT;
MethodParameters:
Name Flags
array
maxIndex
public static byte[] ensureCapacity(byte[], int);
descriptor: ([BI)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
arraylength
if_icmpge 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 1
invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
istore 2
start local 2 3: iload 2
newarray 8
astore 3
start local 3 4: aload 0
iconst_0
aload 3
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 array [B
0 6 1 maxIndex I
3 6 2 newLength I
4 6 3 result [B
MethodParameters:
Name Flags
array
maxIndex
public static char[] ensureCapacity(char[], int);
descriptor: ([CI)[C
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
arraylength
if_icmpge 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 1
invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
istore 2
start local 2 3: iload 2
newarray 5
astore 3
start local 3 4: aload 0
iconst_0
aload 3
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 array [C
0 6 1 maxIndex I
3 6 2 newLength I
4 6 3 result [C
MethodParameters:
Name Flags
array
maxIndex
public static int[] ensureCapacity(int[], int);
descriptor: ([II)[I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
arraylength
if_icmpge 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 1
invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
istore 2
start local 2 3: iload 2
newarray 10
astore 3
start local 3 4: aload 0
iconst_0
aload 3
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 array [I
0 6 1 maxIndex I
3 6 2 newLength I
4 6 3 result [I
MethodParameters:
Name Flags
array
maxIndex
}
SourceFile: "ArrayUtils.java"