public class com.fasterxml.jackson.core.util.VersionUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.fasterxml.jackson.core.util.VersionUtil
super_class: java.lang.Object
{
private static final java.util.regex.Pattern V_SEP;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "[-_./;:]"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic com.fasterxml.jackson.core.util.VersionUtil.V_SEP:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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/fasterxml/jackson/core/util/VersionUtil;
public com.fasterxml.jackson.core.Version version();
descriptor: ()Lcom/fasterxml/jackson/core/Version;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.fasterxml.jackson.core.Version.unknownVersion:()Lcom/fasterxml/jackson/core/Version;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/fasterxml/jackson/core/util/VersionUtil;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static com.fasterxml.jackson.core.Version versionFor(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lcom/fasterxml/jackson/core/Version;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.fasterxml.jackson.core.util.VersionUtil.packageVersionFor:(Ljava/lang/Class;)Lcom/fasterxml/jackson/core/Version;
astore 1
start local 1 1: aload 1
ifnonnull 2
invokestatic com.fasterxml.jackson.core.Version.unknownVersion:()Lcom/fasterxml/jackson/core/Version;
goto 3
StackMap locals: com.fasterxml.jackson.core.Version
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: com.fasterxml.jackson.core.Version
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cls Ljava/lang/Class<*>;
1 4 1 version Lcom/fasterxml/jackson/core/Version;
Signature: (Ljava/lang/Class<*>;)Lcom/fasterxml/jackson/core/Version;
MethodParameters:
Name Flags
cls
public static com.fasterxml.jackson.core.Version packageVersionFor(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lcom/fasterxml/jackson/core/Version;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getPackage:()Ljava/lang/Package;
invokevirtual java.lang.Package.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".PackageVersion"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
iconst_1
aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 3
start local 3 3: aload 3
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.fasterxml.jackson.core.Versioned
invokeinterface com.fasterxml.jackson.core.Versioned.version:()Lcom/fasterxml/jackson/core/Version;
astore 1
4: goto 8
StackMap locals: java.lang.Class com.fasterxml.jackson.core.Version java.lang.String java.lang.Class
StackMap stack: java.lang.Exception
5: pop
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Failed to get Versioned out of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 7: StackMap locals: java.lang.Class com.fasterxml.jackson.core.Version
StackMap stack: java.lang.Exception
pop
8: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
invokestatic com.fasterxml.jackson.core.Version.unknownVersion:()Lcom/fasterxml/jackson/core/Version;
goto 10
StackMap locals:
StackMap stack:
9: aload 1
StackMap locals:
StackMap stack: com.fasterxml.jackson.core.Version
10: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 cls Ljava/lang/Class<*>;
1 11 1 v Lcom/fasterxml/jackson/core/Version;
2 7 2 versionInfoClassName Ljava/lang/String;
3 7 3 vClass Ljava/lang/Class<*>;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
1 7 7 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;)Lcom/fasterxml/jackson/core/Version;
MethodParameters:
Name Flags
cls
public static com.fasterxml.jackson.core.Version mavenVersionFor(java.lang.ClassLoader, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;)Lcom/fasterxml/jackson/core/Version;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.lang.StringBuilder
dup
ldc "META-INF/maven/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 1
ldc "\\."
ldc "/"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/pom.properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
start local 3 3: aload 3
ifnull 17
4: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 4
start local 4 5: aload 4
aload 3
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
6: aload 4
ldc "version"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 7: aload 4
ldc "artifactId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 8: aload 4
ldc "groupId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 9: aload 5
aload 7
aload 6
invokestatic com.fasterxml.jackson.core.util.VersionUtil.parseVersion:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/fasterxml/jackson/core/Version;
astore 9
10: aload 3
invokestatic com.fasterxml.jackson.core.util.VersionUtil._close:(Ljava/io/Closeable;)V
11: aload 9
areturn
end local 7 end local 6 end local 5 end local 4 12: StackMap locals: java.lang.ClassLoader java.lang.String java.lang.String java.io.InputStream
StackMap stack: java.io.IOException
pop
13: aload 3
invokestatic com.fasterxml.jackson.core.util.VersionUtil._close:(Ljava/io/Closeable;)V
goto 17
14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
15: aload 3
invokestatic com.fasterxml.jackson.core.util.VersionUtil._close:(Ljava/io/Closeable;)V
16: aload 8
athrow
17: StackMap locals:
StackMap stack:
invokestatic com.fasterxml.jackson.core.Version.unknownVersion:()Lcom/fasterxml/jackson/core/Version;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 cl Ljava/lang/ClassLoader;
0 18 1 groupId Ljava/lang/String;
0 18 2 artifactId Ljava/lang/String;
3 18 3 pomProperties Ljava/io/InputStream;
5 12 4 props Ljava/util/Properties;
7 12 5 versionStr Ljava/lang/String;
8 12 6 pomPropertiesArtifactId Ljava/lang/String;
9 12 7 pomPropertiesGroupId Ljava/lang/String;
Exception table:
from to target type
4 10 12 Class java.io.IOException
4 10 14 any
12 13 14 any
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
cl
groupId
artifactId
public static com.fasterxml.jackson.core.Version parseVersion(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/fasterxml/jackson/core/Version;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 11
aload 0
invokevirtual java.lang.String.trim:()Ljava/lang/String;
dup
astore 0
invokevirtual java.lang.String.length:()I
ifle 11
1: getstatic com.fasterxml.jackson.core.util.VersionUtil.V_SEP:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.split:(Ljava/lang/CharSequence;)[Ljava/lang/String;
astore 3
start local 3 2: new com.fasterxml.jackson.core.Version
dup
aload 3
iconst_0
aaload
invokestatic com.fasterxml.jackson.core.util.VersionUtil.parseVersionPart:(Ljava/lang/String;)I
3: aload 3
arraylength
iconst_1
if_icmple 4
aload 3
iconst_1
aaload
invokestatic com.fasterxml.jackson.core.util.VersionUtil.parseVersionPart:(Ljava/lang/String;)I
goto 5
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int
4: iconst_0
5: StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int int
aload 3
arraylength
iconst_2
if_icmple 6
aload 3
iconst_2
aaload
invokestatic com.fasterxml.jackson.core.util.VersionUtil.parseVersionPart:(Ljava/lang/String;)I
goto 7
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int int
6: iconst_0
7: StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int int int
aload 3
arraylength
iconst_3
if_icmple 8
aload 3
iconst_3
aaload
goto 9
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int int int
8: aconst_null
9: StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: new 2 new 2 int int int java.lang.String
aload 1
aload 2
10: invokespecial com.fasterxml.jackson.core.Version.<init>:(IIILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 3 11: StackMap locals:
StackMap stack:
invokestatic com.fasterxml.jackson.core.Version.unknownVersion:()Lcom/fasterxml/jackson/core/Version;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 s Ljava/lang/String;
0 12 1 groupId Ljava/lang/String;
0 12 2 artifactId Ljava/lang/String;
2 11 3 parts [Ljava/lang/String;
MethodParameters:
Name Flags
s
groupId
artifactId
protected static int parseVersionPart(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
invokevirtual java.lang.String.length:()I
istore 3
start local 3 3: goto 8
4: StackMap locals: int int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: iload 4
bipush 57
if_icmpgt 9
iload 4
bipush 48
if_icmpge 6
goto 9
6: StackMap locals: int
StackMap stack:
iload 1
bipush 10
imul
iload 4
bipush 48
isub
iadd
istore 1
end local 4 7: iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 3
if_icmplt 4
end local 3 end local 2 9: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 s Ljava/lang/String;
1 10 1 number I
2 9 2 i I
3 9 3 len I
5 7 4 c C
MethodParameters:
Name Flags
s
private static final void _close(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.io.Closeable.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 c Ljava/io/Closeable;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
c
public static final void throwInternal();
descriptor: ()V
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=0, args_size=0
0: new java.lang.RuntimeException
dup
ldc "Internal error: this code path should never get executed"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "VersionUtil.java"