Skip to content

Commit 1377aff

Browse files
authored
StandardCharsets.UTF_8 改为 StringUtil.UTF_8,解决 jitpack 打包报错 Charset cannot be converted to String
1 parent 1bed17d commit 1377aff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.net.InetAddress;
1515
import java.net.URLDecoder;
1616
import java.net.URLEncoder;
17-
import java.nio.charset.StandardCharsets;
1817
import java.sql.Connection;
1918
import java.sql.SQLException;
2019
import java.sql.Savepoint;
@@ -1955,7 +1954,7 @@ public Object getValueByPath(String valuePath) {
19551954
*/
19561955
public static String getDecodedKey(String key) {
19571956
try {
1958-
return URLDecoder.decode(key, StandardCharsets.UTF_8);
1957+
return URLDecoder.decode(key, StringUtil.UTF_8);
19591958
} catch (Throwable e) {
19601959
return key;
19611960
}

0 commit comments

Comments
 (0)