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 // com.sun.tools.javac.util.ArrayUtils this
         0: .line 35
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.sun.tools.javac.util.ArrayUtils this
      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 // int currentLength
        start local 1 // int maxIndex
         0: .line 38
            goto 2
         1: .line 39
      StackMap locals:
      StackMap stack:
            iload 0 /* currentLength */
            iconst_2
            imul
            istore 0 /* currentLength */
         2: .line 38
      StackMap locals:
      StackMap stack:
            iload 0 /* currentLength */
            iload 1 /* maxIndex */
            iconst_1
            iadd
            if_icmplt 1
         3: .line 40
            iload 0 /* currentLength */
            ireturn
        end local 1 // int maxIndex
        end local 0 // int currentLength
      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 // java.lang.Object[] array
        start local 1 // int maxIndex
         0: .line 44
            iload 1 /* maxIndex */
            aload 0 /* array */
            arraylength
            if_icmpge 2
         1: .line 45
            aload 0 /* array */
            areturn
         2: .line 47
      StackMap locals:
      StackMap stack:
            aload 0 /* array */
            arraylength
            iload 1 /* maxIndex */
            invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
            istore 2 /* newLength */
        start local 2 // int newLength
         3: .line 49
            aload 0 /* array */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
            iload 2 /* newLength */
            invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
            checkcast java.lang.Object[]
            astore 3 /* result */
        start local 3 // java.lang.Object[] result
         4: .line 50
            aload 0 /* array */
            iconst_0
            aload 3 /* result */
            iconst_0
            aload 0 /* array */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 51
            aload 3 /* result */
            areturn
        end local 3 // java.lang.Object[] result
        end local 2 // int newLength
        end local 1 // int maxIndex
        end local 0 // java.lang.Object[] array
      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 // byte[] array
        start local 1 // int maxIndex
         0: .line 56
            iload 1 /* maxIndex */
            aload 0 /* array */
            arraylength
            if_icmpge 2
         1: .line 57
            aload 0 /* array */
            areturn
         2: .line 59
      StackMap locals:
      StackMap stack:
            aload 0 /* array */
            arraylength
            iload 1 /* maxIndex */
            invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
            istore 2 /* newLength */
        start local 2 // int newLength
         3: .line 60
            iload 2 /* newLength */
            newarray 8
            astore 3 /* result */
        start local 3 // byte[] result
         4: .line 61
            aload 0 /* array */
            iconst_0
            aload 3 /* result */
            iconst_0
            aload 0 /* array */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 62
            aload 3 /* result */
            areturn
        end local 3 // byte[] result
        end local 2 // int newLength
        end local 1 // int maxIndex
        end local 0 // byte[] array
      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 // char[] array
        start local 1 // int maxIndex
         0: .line 67
            iload 1 /* maxIndex */
            aload 0 /* array */
            arraylength
            if_icmpge 2
         1: .line 68
            aload 0 /* array */
            areturn
         2: .line 70
      StackMap locals:
      StackMap stack:
            aload 0 /* array */
            arraylength
            iload 1 /* maxIndex */
            invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
            istore 2 /* newLength */
        start local 2 // int newLength
         3: .line 71
            iload 2 /* newLength */
            newarray 5
            astore 3 /* result */
        start local 3 // char[] result
         4: .line 72
            aload 0 /* array */
            iconst_0
            aload 3 /* result */
            iconst_0
            aload 0 /* array */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 73
            aload 3 /* result */
            areturn
        end local 3 // char[] result
        end local 2 // int newLength
        end local 1 // int maxIndex
        end local 0 // char[] array
      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 // int[] array
        start local 1 // int maxIndex
         0: .line 78
            iload 1 /* maxIndex */
            aload 0 /* array */
            arraylength
            if_icmpge 2
         1: .line 79
            aload 0 /* array */
            areturn
         2: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* array */
            arraylength
            iload 1 /* maxIndex */
            invokestatic com.sun.tools.javac.util.ArrayUtils.calculateNewLength:(II)I
            istore 2 /* newLength */
        start local 2 // int newLength
         3: .line 82
            iload 2 /* newLength */
            newarray 10
            astore 3 /* result */
        start local 3 // int[] result
         4: .line 83
            aload 0 /* array */
            iconst_0
            aload 3 /* result */
            iconst_0
            aload 0 /* array */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 84
            aload 3 /* result */
            areturn
        end local 3 // int[] result
        end local 2 // int newLength
        end local 1 // int maxIndex
        end local 0 // int[] array
      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"