mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 22:17:50 +00:00
feat[protocol]: 支持生成protobuf协议文件,提供从pojo到proto的生成方式
This commit is contained in:
1 parent
b39fc50a21
commit
b0ba151a8c
34 files changed
+607
-77
No files matched your search
@@ -448,7 +448,7 @@ public abstract class NumberUtils {
|
||||
* @return 新值
|
||||
*/
|
||||
public static BigDecimal round(String numberStr, int scale, RoundingMode roundingMode) {
|
||||
AssertionUtils.isTrue(!StringUtils.isBlank(numberStr));
|
||||
AssertionUtils.isTrue(StringUtils.isNotBlank(numberStr));
|
||||
if (scale < 0) {
|
||||
scale = 0;
|
||||
}
|
||||
@@ -659,10 +659,7 @@ public abstract class NumberUtils {
|
||||
public static boolean isDouble(String s) {
|
||||
try {
|
||||
Double.parseDouble(s);
|
||||
if (s.contains(".")) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return s.contains(".");
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user