Skip to content

Commit

Permalink
StandardCharsets.UTF_8 改为 StringUtil.UTF_8,解决 jitpack 打包报错 Charset ca…
Browse files Browse the repository at this point in the history
…nnot be converted to String
  • Loading branch information
TommyLemon authored Jul 28, 2024
1 parent 1bed17d commit 1377aff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions APIJSONORM/src/main/java/apijson/orm/AbstractParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.net.InetAddress;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Savepoint;
Expand Down Expand Up @@ -1955,7 +1954,7 @@ public Object getValueByPath(String valuePath) {
*/
public static String getDecodedKey(String key) {
try {
return URLDecoder.decode(key, StandardCharsets.UTF_8);
return URLDecoder.decode(key, StringUtil.UTF_8);
} catch (Throwable e) {
return key;
}
Expand Down

0 comments on commit 1377aff

Please sign in to comment.