mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -117,6 +117,9 @@ public class URLDecoder implements Serializable {
|
|||||||
* @return 解码后的字符串
|
* @return 解码后的字符串
|
||||||
*/
|
*/
|
||||||
public static String decode(final String str, final Charset charset, final boolean isPlusToSpace) {
|
public static String decode(final String str, final Charset charset, final boolean isPlusToSpace) {
|
||||||
|
if(null == charset){
|
||||||
|
return str;
|
||||||
|
}
|
||||||
if (null == str) {
|
if (null == str) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user