Skip to content

Commit 921dd39

Browse files
committed
feat: upgrade yauaa
1 parent 4078d39 commit 921dd39

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

blog-api/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<dependency>
131131
<groupId>nl.basjes.parse.useragent</groupId>
132132
<artifactId>yauaa</artifactId>
133-
<version>7.6.0</version>
133+
<version>7.11.0</version>
134134
</dependency>
135135
<!-- configuration processor -->
136136
<dependency>
@@ -144,6 +144,12 @@
144144
<artifactId>java-sdk</artifactId>
145145
<version>4.2.3</version>
146146
</dependency>
147+
<!-- hutool-crypto -->
148+
<dependency>
149+
<groupId>cn.hutool</groupId>
150+
<artifactId>hutool-crypto</artifactId>
151+
<version>5.8.11</version>
152+
</dependency>
147153

148154
<!-- devtools -->
149155
<dependency>

blog-api/src/main/java/top/naccl/util/HashUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package top.naccl.util;
22

3-
import org.apache.commons.codec.digest.MurmurHash3;
3+
import cn.hutool.core.lang.hash.MurmurHash;
44
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
55
import org.springframework.util.DigestUtils;
66

@@ -17,7 +17,7 @@ public static String getMd5(CharSequence str) {
1717
}
1818

1919
public static long getMurmurHash32(String str) {
20-
int i = MurmurHash3.hash32(str);
20+
int i = MurmurHash.hash32(str);
2121
long num = i < 0 ? Integer.MAX_VALUE - (long) i : i;
2222
return num;
2323
}

0 commit comments

Comments
 (0)