public final class org.springframework.boot.actuate.endpoint.http.ApiVersion extends java.lang.Enum<org.springframework.boot.actuate.endpoint.http.ApiVersion>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: org.springframework.boot.actuate.endpoint.http.ApiVersion
super_class: java.lang.Enum
{
public static final org.springframework.boot.actuate.endpoint.http.ApiVersion V2;
descriptor: Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.springframework.boot.actuate.endpoint.http.ApiVersion V3;
descriptor: Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private static final java.lang.String MEDIA_TYPE_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application/vnd.spring-boot.actuator."
public static final org.springframework.boot.actuate.endpoint.http.ApiVersion LATEST;
descriptor: Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final org.springframework.boot.actuate.endpoint.http.ApiVersion[] ENUM$VALUES;
descriptor: [Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.springframework.boot.actuate.endpoint.http.ApiVersion
dup
ldc "V2"
iconst_0
invokespecial org.springframework.boot.actuate.endpoint.http.ApiVersion.<init>:(Ljava/lang/String;I)V
1: putstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.V2:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
2: new org.springframework.boot.actuate.endpoint.http.ApiVersion
dup
ldc "V3"
iconst_1
invokespecial org.springframework.boot.actuate.endpoint.http.ApiVersion.<init>:(Ljava/lang/String;I)V
3: putstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.V3:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
iconst_2
anewarray org.springframework.boot.actuate.endpoint.http.ApiVersion
dup
iconst_0
getstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.V2:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
aastore
dup
iconst_1
getstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.V3:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
aastore
putstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.ENUM$VALUES:[Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
4: getstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.V3:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
putstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.LATEST:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
public static org.springframework.boot.actuate.endpoint.http.ApiVersion fromHttpHeaders(java.util.Map<java.lang.String, java.util.List<java.lang.String>>);
descriptor: (Ljava/util/Map;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
ldc "Accept"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 2: aload 2
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifne 10
3: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: java.util.Map org.springframework.boot.actuate.endpoint.http.ApiVersion java.util.List top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 5: aload 3
invokestatic org.springframework.util.MimeTypeUtils.tokenize:(Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: java.util.Map org.springframework.boot.actuate.endpoint.http.ApiVersion java.util.List java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 7: aload 1
aload 5
invokestatic org.springframework.boot.actuate.endpoint.http.ApiVersion.forType:(Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
invokestatic org.springframework.boot.actuate.endpoint.http.ApiVersion.mostRecent:(Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
astore 1
end local 5 8: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 3 9: StackMap locals: java.util.Map org.springframework.boot.actuate.endpoint.http.ApiVersion java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: StackMap locals: java.util.Map org.springframework.boot.actuate.endpoint.http.ApiVersion java.util.List
StackMap stack:
aload 1
ifnull 11
aload 1
goto 12
StackMap locals:
StackMap stack:
11: getstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.LATEST:Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
StackMap locals:
StackMap stack: org.springframework.boot.actuate.endpoint.http.ApiVersion
12: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 headers Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
1 13 1 version Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
2 13 2 accepts Ljava/util/List<Ljava/lang/String;>;
5 9 3 accept Ljava/lang/String;
7 8 5 type Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
MethodParameters:
Name Flags
headers
private static org.springframework.boot.actuate.endpoint.http.ApiVersion forType(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc "application/vnd.spring-boot.actuator."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
1: aload 0
ldc "application/vnd.spring-boot.actuator."
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
2: aload 0
bipush 43
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 3: iload 1
iconst_m1
if_icmpeq 4
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 5
StackMap locals: int
StackMap stack:
4: aload 0
StackMap locals:
StackMap stack: java.lang.String
5: astore 0
6: aload 0
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokestatic org.springframework.boot.actuate.endpoint.http.ApiVersion.valueOf:(Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
7: areturn
8: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
end local 1 9: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 type Ljava/lang/String;
3 9 1 suffixIndex I
Exception table:
from to target type
6 7 8 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
type
private static org.springframework.boot.actuate.endpoint.http.ApiVersion mostRecent(org.springframework.boot.actuate.endpoint.http.ApiVersion, org.springframework.boot.actuate.endpoint.http.ApiVersion);
descriptor: (Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
invokevirtual org.springframework.boot.actuate.endpoint.http.ApiVersion.ordinal:()I
goto 2
StackMap locals:
StackMap stack:
1: iconst_m1
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: aload 1
ifnull 4
aload 1
invokevirtual org.springframework.boot.actuate.endpoint.http.ApiVersion.ordinal:()I
goto 5
StackMap locals: int
StackMap stack:
4: iconst_m1
StackMap locals:
StackMap stack: int
5: istore 3
start local 3 6: iload 3
iload 2
if_icmple 7
aload 1
goto 8
StackMap locals: int
StackMap stack:
7: aload 0
StackMap locals:
StackMap stack: org.springframework.boot.actuate.endpoint.http.ApiVersion
8: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 existing Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
0 9 1 candidate Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
3 9 2 existingOrdinal I
6 9 3 candidateOrdinal I
MethodParameters:
Name Flags
existing
candidate
public static org.springframework.boot.actuate.endpoint.http.ApiVersion[] values();
descriptor: ()[Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic org.springframework.boot.actuate.endpoint.http.ApiVersion.ENUM$VALUES:[Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray org.springframework.boot.actuate.endpoint.http.ApiVersion
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.springframework.boot.actuate.endpoint.http.ApiVersion valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast org.springframework.boot.actuate.endpoint.http.ApiVersion
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Lorg/springframework/boot/actuate/endpoint/http/ApiVersion;>;
SourceFile: "ApiVersion.java"