qw$a.java
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import com.google.common.base.Preconditions;
import com.google.common.hash.HashCode;
import java.security.MessageDigest;
import java.util.Arrays;
final class qw$a
extends qq
{
private final MessageDigest a;
private final int b;
private boolean c;
private qw$a(MessageDigest paramMessageDigest, int paramInt)
{
this.a = paramMessageDigest;
this.b = paramInt;
}
private void a()
{
if (!this.c) {}
for (boolean bool = true;; bool = false)
{
Preconditions.checkState(bool, "Cannot re-use a Hasher after calling hash() on it");
return;
}
}
protected final void a(byte paramByte)
{
a();
this.a.update(paramByte);
}
protected final void a(byte[] paramArrayOfByte)
{
a();
this.a.update(paramArrayOfByte);
}
protected final void a(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
a();
this.a.update(paramArrayOfByte, paramInt1, paramInt2);
}
public final HashCode hash()
{
a();
this.c = true;
if (this.b == this.a.getDigestLength()) {
return HashCode.a(this.a.digest());
}
return HashCode.a(Arrays.copyOf(this.a.digest(), this.b));
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/qw$a.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/