mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
2619bdd1df
commit
a508533f9c
@ -30,6 +30,7 @@
|
||||
* 【core 】 优化NumberUtil中针对BigDecimal的一些处理逻辑(pr#1127@Github)
|
||||
* 【core 】 NumberUtil.factorial注释明确(pr#1126@Github)
|
||||
* 【core 】 NumberUtil增加isPowerOfTwo方法(pr#1132@Github)
|
||||
* 【core 】 优化BooleanUtil的校验逻辑(pr#1137@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【crypto 】 修复SM2验签后无法解密问题(issue#I1W0VP@Gitee)
|
||||
|
@ -1,7 +1,10 @@
|
||||
package cn.hutool.core.util;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Boolean类型相关工具类
|
||||
*
|
||||
@ -11,7 +14,7 @@ import cn.hutool.core.convert.Convert;
|
||||
public class BooleanUtil {
|
||||
|
||||
/** 表示为真的字符串 */
|
||||
private static final Set<String> TRUE_SET = new HashSet<>(Arrays.asList("true", "yes", "y", "t", "ok", "1", "on", "是", "对", "真", "對", "√"));
|
||||
private static final Set<String> TRUE_SET = CollUtil.newHashSet("true", "yes", "y", "t", "ok", "1", "on", "是", "对", "真", "對", "√");
|
||||
|
||||
/**
|
||||
* 取相反值
|
||||
|
Loading…
x
Reference in New Issue
Block a user