修正部分参数

This commit is contained in:
2025-07-01 21:39:32 +08:00
parent 0318b2455d
commit 4d5f2adef4

View File

@ -726,7 +726,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
BigDecimal result; BigDecimal result;
try { try {
result = new BigDecimal(s.toString()); result = new BigDecimal(s.toString());
} catch (NumberFormatException e) { } catch (Exception e) {
return BigDecimal.ZERO; return BigDecimal.ZERO;
} }
return result; return result;
@ -736,7 +736,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
Long result; Long result;
try { try {
result = Long.parseLong(s.toString()); result = Long.parseLong(s.toString());
} catch (NumberFormatException e) { } catch (Exception e) {
return Long.parseLong("0"); return Long.parseLong("0");
} }
return result; return result;
@ -746,7 +746,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
String result; String result;
try { try {
result = String.valueOf(s); result = String.valueOf(s);
} catch (NumberFormatException e) { } catch (Exception e) {
return "0"; return "0";
} }
return result; return result;