public final class org.springframework.boot.actuate.endpoint.EndpointId
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.springframework.boot.actuate.endpoint.EndpointId
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Set<java.lang.String> loggedWarnings;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static final java.util.regex.Pattern VALID_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern WARNING_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String MIGRATE_LEGACY_NAMES_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "management.endpoints.migrate-legacy-ids"
private final java.lang.String value;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String lowerCaseValue;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String lowerCaseAlphaNumeric;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/springframework/boot/actuate/endpoint/EndpointId;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.boot.actuate.endpoint.EndpointId.logger:Lorg/apache/commons/logging/Log;
1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.springframework.boot.actuate.endpoint.EndpointId.loggedWarnings:Ljava/util/Set;
2: ldc "[a-zA-Z0-9.-]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.springframework.boot.actuate.endpoint.EndpointId.VALID_PATTERN:Ljava/util/regex/Pattern;
3: ldc "[.-]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.springframework.boot.actuate.endpoint.EndpointId.WARNING_PATTERN:Ljava/util/regex/Pattern;
4: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "Value must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
2: getstatic org.springframework.boot.actuate.endpoint.EndpointId.VALID_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ldc "Value must only contain valid chars"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
3: aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isDigit:(C)Z
ifeq 4
iconst_0
goto 5
StackMap locals: org.springframework.boot.actuate.endpoint.EndpointId java.lang.String
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: ldc "Value must not start with a number"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
6: aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 7
iconst_0
goto 8
StackMap locals:
StackMap stack:
7: iconst_1
StackMap locals:
StackMap stack: int
8: ldc "Value must not start with an uppercase letter"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
9: getstatic org.springframework.boot.actuate.endpoint.EndpointId.WARNING_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 11
10: aload 1
invokestatic org.springframework.boot.actuate.endpoint.EndpointId.logWarning:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.springframework.boot.actuate.endpoint.EndpointId.value:Ljava/lang/String;
12: aload 0
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseValue:Ljava/lang/String;
13: aload 0
aload 0
aload 0
getfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseValue:Ljava/lang/String;
invokevirtual org.springframework.boot.actuate.endpoint.EndpointId.getAlphaNumerics:(Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseAlphaNumeric:Ljava/lang/String;
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
0 15 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value
private java.lang.String getAlphaNumerics(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.String.length:()I
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: iload 4
bipush 97
if_icmplt 5
iload 4
bipush 122
if_icmple 6
StackMap locals: int
StackMap stack:
5: iload 4
bipush 48
if_icmplt 7
iload 4
bipush 57
if_icmpgt 7
6: StackMap locals:
StackMap stack:
aload 2
iload 4
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 3 9: aload 2
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 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
0 10 1 value Ljava/lang/String;
1 10 2 result Ljava/lang/StringBuilder;
2 9 3 i I
4 7 4 ch C
MethodParameters:
Name Flags
value
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseAlphaNumeric:Ljava/lang/String;
aload 1
checkcast org.springframework.boot.actuate.endpoint.EndpointId
getfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseAlphaNumeric:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
0 5 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseAlphaNumeric:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
public java.lang.String toLowerCaseString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.actuate.endpoint.EndpointId.lowerCaseValue:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.actuate.endpoint.EndpointId.value:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/actuate/endpoint/EndpointId;
public static org.springframework.boot.actuate.endpoint.EndpointId of(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/EndpointId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.springframework.boot.actuate.endpoint.EndpointId
dup
aload 0
invokespecial org.springframework.boot.actuate.endpoint.EndpointId.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
public static org.springframework.boot.actuate.endpoint.EndpointId of(org.springframework.core.env.Environment, java.lang.String);
descriptor: (Lorg/springframework/core/env/Environment;Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/EndpointId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "Environment must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: new org.springframework.boot.actuate.endpoint.EndpointId
dup
aload 0
aload 1
invokestatic org.springframework.boot.actuate.endpoint.EndpointId.migrateLegacyId:(Lorg/springframework/core/env/Environment;Ljava/lang/String;)Ljava/lang/String;
invokespecial org.springframework.boot.actuate.endpoint.EndpointId.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 environment Lorg/springframework/core/env/Environment;
0 2 1 value Ljava/lang/String;
MethodParameters:
Name Flags
environment
value
private static java.lang.String migrateLegacyId(org.springframework.core.env.Environment, java.lang.String);
descriptor: (Lorg/springframework/core/env/Environment;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "management.endpoints.migrate-legacy-ids"
ldc Ljava/lang/Boolean;
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.springframework.core.env.Environment.getProperty:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
1: aload 1
ldc "[-.]+"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 environment Lorg/springframework/core/env/Environment;
0 3 1 value Ljava/lang/String;
MethodParameters:
Name Flags
environment
value
public static org.springframework.boot.actuate.endpoint.EndpointId fromPropertyValue(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/boot/actuate/endpoint/EndpointId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.springframework.boot.actuate.endpoint.EndpointId
dup
aload 0
ldc "-"
ldc ""
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
invokespecial org.springframework.boot.actuate.endpoint.EndpointId.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
static void resetLoggedWarnings();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.springframework.boot.actuate.endpoint.EndpointId.loggedWarnings:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
private static void logWarning(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.springframework.boot.actuate.endpoint.EndpointId.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isWarnEnabled:()Z
ifeq 2
getstatic org.springframework.boot.actuate.endpoint.EndpointId.loggedWarnings:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.springframework.boot.actuate.endpoint.EndpointId.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Endpoint ID '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' contains invalid characters, please migrate to a valid format."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
}
SourceFile: "EndpointId.java"