Commit Graph

1252 Commits

Author SHA1 Message Date
Looly
cc9bd54cc8 add test 2023-03-07 18:22:31 +08:00
Looly
ccc316ee8c JavaSourceCompilerTest 2023-03-03 20:43:42 +08:00
Golden Looly
dc74b829a4
Merge pull request #2942 from xuwenping123/v5_dev_compile
add source code for dynamic compile
2023-03-03 20:41:14 +08:00
Looly
a25a707e3a add test 2023-03-03 18:18:39 +08:00
xuwenping
f0d94c9806 add source code for dynamic compile 2023-03-02 22:45:33 +08:00
Looly
5fcd4093be PhoneUtil.isTel400800支持400-XXX-XXXX格式 2023-02-28 22:18:57 +08:00
Looly
fe7751342e 修复isXXX转换时的匹配问题 2023-02-22 19:33:56 +08:00
Looly
c8124bd0c6 add test 2023-02-21 16:05:25 +08:00
Golden Looly
ca2fbf45f3
Merge pull request #2912 from jptx1234/v5-dev
修复ReflectUtil.invokeRaw方法中参数类型转换动作未生效的问题
2023-02-21 15:55:55 +08:00
Looly
c3f378207b 修复ReUtil.delAll方法当 content 仅为空格时的问题 2023-02-21 11:44:46 +08:00
jptx1234
12abd63460 修复ReflectUtil.invokeRaw方法中参数类型转换动作未生效的问题 2023-02-20 00:11:49 +08:00
Zjp
6cd85b7f16 fix StrUtil.split切分长度为0时的bug; 2023-02-17 10:50:31 +08:00
Golden Looly
66949c9b4b
Merge pull request #2894 from winlans/v5-dev
fix FileUtil.move
2023-02-15 17:39:37 +08:00
mochouZero555
9ba833313c IssueI6E6ZG 法定年龄 由虚岁计算改未周岁计算,并增加测试 2023-02-11 22:03:53 +08:00
winlans
2d311a6b90 fix FileUtil.move 2023-02-10 18:15:45 +08:00
Golden Looly
2169e33e61
Merge pull request #2889 from winlans/v5-dev
fix DateUtil.parseUTC
2023-02-09 20:33:44 +08:00
Looly
771f0a4809 修复“sax方式读取excel2003版本,会调用两次doAfterAllAnalysed方法”问题 2023-02-09 19:43:49 +08:00
Looly
0e3cf48875
!919 修复“sax方式读取excel2003版本,会调用两次doAfterAllAnalysed方法”问题。
Merge pull request !919 from hellozrh/v5-dev
2023-02-09 11:37:01 +00:00
winlans
b710b83780 fix DateUtil.parseUTC 2023-02-09 19:28:53 +08:00
ZZemptypoint
1d1061eae6 fix bug Ipv4Util.list(String,String)方法生成的ip不全; 2023-02-04 21:44:59 +08:00
hellozrh
c660d79bf2 解决excel读到时空白行rowHanler重复执行的问题。 2023-01-18 09:20:05 +08:00
Looly
9183a9100e DesensitizedUtil增加对IPv4和IPv6支持 2023-01-17 17:07:18 +08:00
Golden Looly
d5718240cc
Merge pull request #2834 from CherryRum/lin_dev
fix(FileTypeUtil): 重构根据file magic number判断文件类型
2023-01-15 11:23:25 +08:00
Looly
a0cba2fd55 修复HexUtil.isHexNumber()对"-"的判断问题 2023-01-15 11:01:28 +08:00
yulin
d67e1c567d fix(FileTypeUtil): 重构根据file magic number判断文件类型
1.重构多个Magic Number
2.根据单独类型匹配,修复某些文件跳位置对比
3.获取到文件Mime类型和后缀
4.获取文件流从28byte提升到64byte
5.添加精确匹配如docx、xlsx、pptx、doc、xls、ppt,精确匹配为8192byte(大小10k文件左右)
6.添加file magic number枚举

Closes https://github.com/dromara/hutool/issues/2821
2022-12-31 21:31:46 +08:00
Looly
582f9e7a8c 修复CoordinateUtil坐标转换参数错误 2022-12-27 21:40:59 +08:00
Looly
ecde508346 修复ZIP bomb漏洞 2022-12-14 16:29:39 +08:00
Looly
0d495e34b3 修复getMultistageReverseProxyIp未去除空格问题 2022-12-05 23:42:00 +08:00
Looly
5aa8e9d9a6 add test 2022-11-28 10:22:40 +08:00
Looly
d6134f707d 修复BiMap中未重写computeIfAbsent和putIfAbsent导致双向查找出问题 2022-11-26 12:07:20 +08:00
Looly
4e06f02610 修复HexUtil.isHexNumber()判断逻辑超出long的精度问题 2022-11-24 13:33:12 +08:00
Looly
26771b2853 修复ArrayUtil.insert()不支持原始类型数组的问题 2022-11-24 13:29:52 +08:00
Looly
8db6cb041b add test 2022-11-17 02:17:39 +08:00
Looly
8ff1368f30 修复BeanUtil.copyProperties 包含EnumSet ,类型转换异常问题 2022-11-12 19:46:57 +08:00
Golden Looly
47198cc819
Merge pull request #2684 from lianyiwuming/v5-dev
修复bug https://github.com/dromara/hutool/issues/2683
2022-11-12 19:12:23 +08:00
yulin
3240406aa9 refactor(DateUtil、LocalDateTimeUtil): 添加区间退化为点,点与区间,点与点之间关系判断。
Closes https://gitee.com/dromara/hutool/issues/I60JMT
2022-11-10 22:29:02 +08:00
Looly
ece502c526 修复ChineseDate传入农历日期非闰月时获取公历错误问题 2022-11-10 09:58:26 +08:00
Looly
3b98f64924 优化BeanPath.set方法,避免多次重复调用get方法 2022-11-10 09:30:32 +08:00
Looly
dacf9c80bb fix test 2022-11-08 20:27:24 +08:00
Looly
a293fd5510 修复 BeanUtil#copyProperties 源对象与目标对象都是 Map 时设置忽略属性无效问题 2022-11-08 20:20:50 +08:00
Golden Looly
4fdc443a4e
Merge pull request #2698 from top-zhang/v5-dev
fix: 修复 BeanUtil#copyProperties 源对象与目标对象都是 Map 时设置忽略属性无效问题
2022-11-08 20:04:32 +08:00
Looly
32ef5b21b5 add test 2022-11-08 19:48:12 +08:00
Looly
d298eb5b73 ClassScanner 增加忽略加载错误类的扫描方法 2022-11-08 19:20:09 +08:00
Looly
39dee801f0
!855 cn.hutool.core.lang.ClassScanner 增加忽略加载错误类的扫描方法
Merge pull request !855 from oofrank/v5-dev
2022-11-08 11:15:22 +00:00
Looly
ecc4cd64eb 去除ClassloaderUtil的Cache 2022-11-08 19:09:46 +08:00
Looly
9234846eb7 修复StrUtil.subWithLength负数问题 2022-11-03 23:17:06 +08:00
topgun
fc186ddd54 fix: 修复 BeanUtil#copyProperties 源对象与目标对象都是 Map 时设置忽略属性无效问题
closes #2697
2022-10-31 22:24:34 +08:00
frank.lee
eb6ad0fe68 Merge branch 'v5-master' of https://gitee.com/oofrank/hutool into v5-dev 2022-10-28 12:35:32 +08:00
frank.lee
f419507049 [新特性]
cn.hutool.core.lang.ClassScanner
scan(boolean,boolean)
增加忽略加载错误类的扫描方法,同时收集了错误的类名,使用简单逻辑编写了测试方法进行测试.

当前 JavaSourceCompilerTest 的几个类恰好不能正常加载,被正确忽略。
2022-10-28 12:31:48 +08:00
hongdan.qin
58f90d6e06 修复bug https://github.com/dromara/hutool/issues/2683 2022-10-26 11:21:23 +08:00
Looly
2bafc6c8a8 FileUtil.copy,当来源为文件时,返回文件而非目录 2022-10-24 22:28:35 +08:00
Looly
2142d6522a 由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此BCD标记为弃用 2022-10-24 19:45:11 +08:00
Looly
01fc836e56 CollectorUtil添加支持对值集合进行映射的分组方法 2022-10-22 22:15:09 +08:00
Looly
92003ecbfb 修复TableMap没有default方法导致的问题 2022-10-22 22:11:03 +08:00
Looly
f6fe00aa69 del test 2022-10-16 21:24:50 +08:00
Golden Looly
a85f5aa8f9
Merge pull request #2656 from wangfanlan/v5-dev
test
2022-10-16 21:18:08 +08:00
thewindkee
eccc58acc4 FuncKeyMap的子类,传入可被序列化的keyFunc 2022-10-15 01:02:41 +08:00
thewindkee
d61fed995f FuncKeyMap的子类,传入可被序列化的keyFunc 2022-10-15 00:49:42 +08:00
thewindkee
432f3a0956 FuncKeyMap的子类,传入可被序列化的keyFunc 2022-10-15 00:36:08 +08:00
wang fl
924f6c226d
Merge branch 'dromara:v5-dev' into v5-dev 2022-10-14 09:58:18 +08:00
王昌盛
6856a854f0 test 2022-10-13 18:17:03 +08:00
bwcx_jzy
efe89848b0
fix UrlBuilder test 2022-10-13 15:44:27 +08:00
bwcx_jzy
7bbd33b0b0
fix UrlBuilder getPortWithDefault 2022-10-13 15:41:34 +08:00
Looly
dca6cbe4b1 修复MapToMap中ignoreNullValue无效问题 2022-10-12 14:39:02 +08:00
Looly
09e8d7c6d1 add u2800 as blank char 2022-10-10 22:10:23 +08:00
Looly
e354ea93cc fix doc 2022-10-09 18:37:21 +08:00
Looly
0596dec9ab CharUtil.isBlank添加Hangul Filler字符 2022-10-08 21:15:08 +08:00
Looly
7eb899e226 修复ReUtil.replaceAll替换变量错误问题 2022-09-30 20:10:11 +08:00
Looly
44684aa036 AnnotationUtil类支持Lambda获取某注解属性值 2022-09-30 19:07:36 +08:00
Looly
82824793ba
!827 注解工具类支持Lambda获取某注解属性值
Merge pull request !827 from 嗯嗯/v5-dev
2022-09-30 11:04:46 +00:00
LinRuChang
2c24738b2c 注解工具类支持Lambda获取某注解属性值 2022-09-30 12:32:35 +08:00
LinRuChang
80f973093c 注解工具类支持Lambda获取某注解属性值 2022-09-30 11:36:30 +08:00
quping
ee12875bf3 新增了获取本月最后一天,是否为本月最后一天 2022-09-28 18:07:27 +08:00
Looly
52496bb62f CharsetDetector增加默认识别的长度 2022-09-26 22:52:13 +08:00
Looly
bef38c365b hutool-extra ftp 支持上传文件或目录 2022-09-26 22:18:45 +08:00
青韵
0b8c4bbad0 CollUtil.unionAll优化:初始化一次size,防止ArrayList多次扩容 2022-09-26 21:33:49 +08:00
Looly
186289c979 fix doc 2022-09-24 01:08:24 +08:00
Looly
8d348b539d 修复ReflectUtil 反射方法中桥接问题 2022-09-23 11:51:49 +08:00
Looly
7a71c90edb AbsCollValueMap添加removeValue和removeValues方法,用于list value值移除 2022-09-22 16:25:51 +08:00
gaotianyu01
d24672bb4e AbsCollValueMap添加removeValue方法,用于单个值移除 2022-09-22 15:20:28 +08:00
Looly
eef7943d8a ModifierUtil和ReflectUtil增加removeFinalModify 2022-09-21 18:31:31 +08:00
Looly
0941210553
!810 反射新增:setFieldModify(field)方法,设置final字段可以被修改,并设置到:setFieldValue中
Merge pull request !810 from dazer007/v5-dev-ReflectUtil-add-setFieldModify
2022-09-21 10:33:26 +00:00
Looly
dbf87f452f add testr 2022-09-21 18:23:49 +08:00
duandazhi
724728987d 1、重命名:setFieldModify-->removeFinalModify
2、移除: ReflectUtil.setFieldValue自动进行:removeFinalModify
2022-09-21 16:45:10 +08:00
duandazhi
a8b89e48e3 JdbcDialects改成内部类 2022-09-21 14:37:48 +08:00
duandazhi
bcfbd28c12 ReflectUtilTest增加:测试方法,验证对 final属性的修改 2022-09-21 14:04:01 +08:00
Looly
5f68c73938 修复PunyCode处理域名的问题 2022-09-20 22:54:58 +08:00
Looly
11f52ffc4f 修复murmur3_32实现错误 2022-09-20 17:03:42 +08:00
Golden Looly
0c6ea1b3e8
Merge pull request #2616 from morn-0/v5-dev
修复 murmur3 32 实现错误
2022-09-20 16:14:25 +08:00
Looly
ce1e5d3827 add test 2022-09-20 15:00:33 +08:00
morn-0
1854755fb6 修复 murmur3 32 错误 2022-09-19 15:52:53 +08:00
Looly
1af96de3ae StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化 2022-09-19 09:52:40 +08:00
Looly
f897da013f
!807 StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化
Merge pull request !807 from 这是一个腊鸡/v5-dev
2022-09-19 01:29:14 +00:00
Looly
e0bb2da87b 修复FileNameUtil.cleanInvalid无法去除换行符问题 2022-09-17 22:27:51 +08:00
青韵
46daf6c1c0 StreamUtil.of方法新增对 Iterator 支持 2022-09-17 10:52:09 +08:00
Looly
773d483337 fix test 2022-09-15 23:26:31 +08:00
Looly
53204e5e5b 修复Convert.chineseMoneyToNumber角分丢失问题 2022-09-15 23:17:31 +08:00
Looly
874e33458e 修复DateUtil.parseUTC时对-的处理问题 2022-09-15 17:12:30 +08:00
Golden Looly
746c18fdf7
Merge pull request #2513 from hiqiuyi/v5-dev
指定压缩后图片的背景色
2022-09-15 00:40:05 +08:00
Looly
bce8d93ba7 新增AnsiColors(改自Spring Boot)、AnsiColorWrapper,优化QrCodeUtil 2022-09-15 00:07:02 +08:00