final class com.google.common.hash.MessageDigestHashFunction extends com.google.common.hash.AbstractHashFunction implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.hash.MessageDigestHashFunction
super_class: com.google.common.hash.AbstractHashFunction
{
private final java.security.MessageDigest prototype;
descriptor: Ljava/security/MessageDigest;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bytes;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean supportsClone;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String toString;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.google.common.hash.AbstractHashFunction.<init>:()V
1: aload 0
aload 1
invokestatic com.google.common.hash.MessageDigestHashFunction.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
2: aload 0
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getDigestLength:()I
putfield com.google.common.hash.MessageDigestHashFunction.bytes:I
3: aload 0
aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.google.common.hash.MessageDigestHashFunction.toString:Ljava/lang/String;
4: aload 0
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokestatic com.google.common.hash.MessageDigestHashFunction.supportsClone:(Ljava/security/MessageDigest;)Z
putfield com.google.common.hash.MessageDigestHashFunction.supportsClone:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/hash/MessageDigestHashFunction;
0 6 1 algorithmName Ljava/lang/String;
0 6 2 toString Ljava/lang/String;
MethodParameters:
Name Flags
algorithmName
toString
void <init>(java.lang.String, int, java.lang.String);
descriptor: (Ljava/lang/String;ILjava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.google.common.hash.AbstractHashFunction.<init>:()V
1: aload 0
aload 3
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.google.common.hash.MessageDigestHashFunction.toString:Ljava/lang/String;
2: aload 0
aload 1
invokestatic com.google.common.hash.MessageDigestHashFunction.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
3: aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getDigestLength:()I
istore 4
start local 4 4: iload 2
iconst_4
if_icmplt 5
iload 2
iload 4
if_icmpgt 5
iconst_1
goto 6
StackMap locals: com.google.common.hash.MessageDigestHashFunction java.lang.String int java.lang.String int
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: ldc "bytes (%s) must be >= 4 and < %s"
iload 2
iload 4
7: invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;II)V
8: aload 0
iload 2
putfield com.google.common.hash.MessageDigestHashFunction.bytes:I
9: aload 0
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokestatic com.google.common.hash.MessageDigestHashFunction.supportsClone:(Ljava/security/MessageDigest;)Z
putfield com.google.common.hash.MessageDigestHashFunction.supportsClone:Z
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/hash/MessageDigestHashFunction;
0 11 1 algorithmName Ljava/lang/String;
0 11 2 bytes I
0 11 3 toString Ljava/lang/String;
4 11 4 maxLength I
MethodParameters:
Name Flags
algorithmName
bytes
toString
private static boolean supportsClone(java.security.MessageDigest);
descriptor: (Ljava/security/MessageDigest;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
pop
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 digest Ljava/security/MessageDigest;
Exception table:
from to target type
0 1 2 Class java.lang.CloneNotSupportedException
MethodParameters:
Name Flags
digest
public int bits();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.hash.MessageDigestHashFunction.bytes:I
bipush 8
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/hash/MessageDigestHashFunction;
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 com.google.common.hash.MessageDigestHashFunction.toString:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/hash/MessageDigestHashFunction;
private static java.security.MessageDigest getMessageDigest(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/MessageDigest;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
1: areturn
2: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 algorithmName Ljava/lang/String;
3 4 1 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 1 2 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithmName
public com.google.common.hash.Hasher newHasher();
descriptor: ()Lcom/google/common/hash/Hasher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.hash.MessageDigestHashFunction.supportsClone:Z
ifeq 4
1: new com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher
dup
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
checkcast java.security.MessageDigest
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.bytes:I
invokespecial com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher.<init>:(Ljava/security/MessageDigest;I)V
2: areturn
3: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
pop
4: StackMap locals:
StackMap stack:
new com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher
dup
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
invokestatic com.google.common.hash.MessageDigestHashFunction.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.bytes:I
invokespecial com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher.<init>:(Ljava/security/MessageDigest;I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/hash/MessageDigestHashFunction;
Exception table:
from to target type
1 2 3 Class java.lang.CloneNotSupportedException
java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: new com.google.common.hash.MessageDigestHashFunction$SerializedForm
dup
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.prototype:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.bytes:I
aload 0
getfield com.google.common.hash.MessageDigestHashFunction.toString:Ljava/lang/String;
invokespecial com.google.common.hash.MessageDigestHashFunction$SerializedForm.<init>:(Ljava/lang/String;ILjava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/hash/MessageDigestHashFunction;
}
SourceFile: "MessageDigestHashFunction.java"
NestMembers:
com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher com.google.common.hash.MessageDigestHashFunction$SerializedForm
InnerClasses:
private final MessageDigestHasher = com.google.common.hash.MessageDigestHashFunction$MessageDigestHasher of com.google.common.hash.MessageDigestHashFunction
private final SerializedForm = com.google.common.hash.MessageDigestHashFunction$SerializedForm of com.google.common.hash.MessageDigestHashFunction
RuntimeVisibleAnnotations:
com.google.errorprone.annotations.Immutable()