public class org.eclipse.jetty.util.ArrayUtil implements java.lang.Cloneable, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.ArrayUtil
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 Lorg/eclipse/jetty/util/ArrayUtil;
public static <T> T[] removeFromArray(T[], );
descriptor: ([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
ifnonnull 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
istore 2
start local 2 3: goto 14
4: StackMap locals: int
StackMap stack:
aload 1
aload 0
iload 2
aaload
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 14
5: aload 0
ifnonnull 6
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 7
StackMap locals:
StackMap stack:
6: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
StackMap locals:
StackMap stack: java.lang.Class
7: astore 3
start local 3 8: aload 3
aload 0
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
iconst_1
isub
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 4
start local 4 9: iload 2
ifle 11
10: aload 0
iconst_0
aload 4
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: StackMap locals: java.lang.Class java.lang.Object[]
StackMap stack:
iload 2
iconst_1
iadd
aload 0
arraylength
if_icmpge 13
12: aload 0
iload 2
iconst_1
iadd
aload 4
iload 2
aload 0
arraylength
iload 2
iconst_1
iadd
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 14: StackMap locals:
StackMap stack:
iload 2
iinc 2 -1
ifgt 4
end local 2 15: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 array [Ljava/lang/Object;
0 16 1 item Ljava/lang/Object;
3 15 2 i I
8 14 3 c Ljava/lang/Class<*>;
9 14 4 na [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;Ljava/lang/Object;)[TT;
MethodParameters:
Name Flags
array
item
public static <T> T[] add(T[], );
descriptor: ([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 1
arraylength
ifne 4
3: StackMap locals:
StackMap stack:
aload 0
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 0
arraylength
aload 1
arraylength
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 2
start local 2 5: aload 1
iconst_0
aload 2
aload 0
arraylength
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 array1 [Ljava/lang/Object;
0 7 1 array2 [Ljava/lang/Object;
5 7 2 na [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;[TT;)[TT;
MethodParameters:
Name Flags
array1
array2
public static <T> T[] addToArray(T[], T, java.lang.Class<?>);
descriptor: ([Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 6
1: aload 2
ifnonnull 3
aload 1
ifnull 3
2: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
iconst_1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 4: aload 3
iconst_0
aload 1
aastore
5: aload 3
areturn
end local 3 6: StackMap locals:
StackMap stack:
aload 0
aload 0
arraylength
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 3
start local 3 7: aload 3
aload 0
arraylength
aload 1
aastore
8: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 array [Ljava/lang/Object;
0 9 1 item TT;
0 9 2 type Ljava/lang/Class<*>;
4 6 3 na [Ljava/lang/Object;
7 9 3 na [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;TT;Ljava/lang/Class<*>;)[TT;
MethodParameters:
Name Flags
array
item
type
public static <T> T[] prependToArray(T, T[], java.lang.Class<?>);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;Ljava/lang/Class;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 6
1: aload 2
ifnonnull 3
aload 0
ifnull 3
2: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
iconst_1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 4: aload 3
iconst_0
aload 0
aastore
5: aload 3
areturn
end local 3 6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 3
start local 3 7: aload 3
aload 1
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
iconst_1
iadd
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 4
start local 4 8: aload 1
iconst_0
aload 4
iconst_1
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 4
iconst_0
aload 0
aastore
10: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 item TT;
0 11 1 array [Ljava/lang/Object;
0 11 2 type Ljava/lang/Class<*>;
4 6 3 na [Ljava/lang/Object;
7 11 3 c Ljava/lang/Class<*>;
8 11 4 na [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(TT;[TT;Ljava/lang/Class<*>;)[TT;
MethodParameters:
Name Flags
item
array
type
public static <E> java.util.List<E> asMutableList(E[]);
descriptor: ([Ljava/lang/Object;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 array [Ljava/lang/Object;
Signature: <E:Ljava/lang/Object;>([TE;)Ljava/util/List<TE;>;
MethodParameters:
Name Flags
array
public static <T> T[] removeNulls();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=10, args_size=1
start local 0 0: aload 0
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 12
StackMap locals: java.lang.Object[] top int int java.lang.Object[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
ifnonnull 11
3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 4: aload 0
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 9
StackMap locals: java.lang.Object[] java.lang.Object int int java.lang.Object[] java.util.List top int int java.lang.Object[]
StackMap stack:
5: aload 9
iload 7
aaload
astore 6
start local 6 6: aload 6
ifnull 8
7: aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 8: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
9: iload 7
iload 8
if_icmplt 5
10: aload 5
aload 0
aload 5
invokeinterface java.util.List.size:()I
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 5 end local 1 11: StackMap locals: java.lang.Object[] top int int java.lang.Object[]
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
12: iload 2
iload 3
if_icmplt 1
13: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 array [Ljava/lang/Object;
2 11 1 t TT;
4 11 5 list Ljava/util/List<TT;>;
6 8 6 t2 TT;
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
array
}
SourceFile: "ArrayUtil.java"