【fix sonar】PasswordUtil文件

This commit is contained in:
梁琦涛
2023-03-06 13:32:33 +08:00
parent 287fdf6f6d
commit c3d6e6a45d
@@ -177,7 +177,7 @@ public class PasswordUtil {
*/
public static byte[] hexStringToBytes(String hexString) {
if (hexString == null || "".equals(hexString)) {
return null;
return new byte[0];
}
hexString = hexString.toUpperCase();
int length = hexString.length() / 2;