Commit Graph

3135 Commits

Author SHA1 Message Date
Looly
db2b6929ba Merge branch 'v5-dev' of github.com:dromara/hutool into v5-dev 2024-03-26 19:59:47 +08:00
pine
4ebf69c81b 修改 CharSequenceUtil.ordinalIndexOf 方法的注释 2024-03-26 19:49:59 +08:00
Looly
2f7938492e 优化ThreadUtil.safeSleep,使用System.nanoTime() 2024-03-26 18:13:46 +08:00
Looly
8e26dd001b fix name 2024-03-23 09:41:43 +08:00
Looly
6ec135486c fix code 2024-03-20 16:41:35 +08:00
Looly
a1f591c099 修复ClassUtil.getTypeArgument() 获取泛型存在null问题 2024-03-18 11:53:33 +08:00
Looly
bf890d17f1 修复ClassUtil.getTypeArgument() 获取泛型存在null问题 2024-03-18 09:53:15 +08:00
Looly
03a92830a6 修复Graphics2D的资源没释放问题 2024-03-15 16:37:41 +08:00
风澈
622fc69f0c
修改ipv6脱敏注释
Signed-off-by: 风澈 <530534635@qq.com>
2024-03-13 02:46:01 +00:00
Looly
d18babc83f add test 2024-03-12 17:59:33 +08:00
Looly
126674a453 修复DateUtil.betweenYear闰年2月问题 2024-03-12 17:32:55 +08:00
Looly
65ec4cf3aa FileUtil和PathUtil增加Resource重载 2024-03-11 23:39:36 +08:00
Looly
21bf415eab FileUtil和PathUtil增加Resource重载 2024-03-11 23:10:57 +08:00
Looly
c5f37b062e StrUtil.replace歧义,修改为replaceByCodePoint 2024-03-07 16:12:33 +08:00
Looly
923cf3d265 修复JSONUtil序列化和反序列化预期的结果不一致问题 2024-03-06 17:20:09 +08:00
Looly
fa67339509 Merge branch 'v5-dev' of github.com:dromara/hutool into v5-dev 2024-03-06 17:10:30 +08:00
misakacoder
745826012a fix 3504 2024-03-05 13:35:10 +08:00
Looly
17a9701349 修复PathMover对目标已存在且只读文件报错错误问题 2024-03-05 11:41:53 +08:00
Looly
9ef714ad53 add test 2024-03-01 09:27:49 +08:00
Looly
e6dc02b421 add comment 2024-02-29 11:21:13 +08:00
Looly
3f7cb8ab5f add test 2024-02-29 11:20:21 +08:00
Looly
832235f5e8 HexUtil#format方法增加prefix参数 2024-02-26 15:57:05 +08:00
Looly
9e6c403d2f add test 2024-02-20 11:50:58 +08:00
Looly
067d7dc495 FreemarkerEngine修改默认版本参数 2024-02-19 18:45:38 +08:00
Looly
66d50a405a prepare 5.8.27 2024-02-10 20:30:37 +08:00
Looly
aaac1f510d change version 2024-02-10 20:24:10 +08:00
Looly
5cf57f6a64 prepare 5.8.27 2024-02-10 20:21:38 +08:00
Looly
96b486bb5a 🎆release 5.8.26 2024-02-10 20:06:16 +08:00
Looly
058c801442 修复VersionComparator违反传递问题 2024-02-10 12:37:19 +08:00
Looly
44580782f1 MapUtil增加partition方法 2024-02-07 11:24:44 +08:00
晨晨
f608d7de24
MapUtil添加按固定大小划分Map的方法
Signed-off-by: 晨晨 <2050365570a@gmail.com>
2024-02-04 09:11:13 +00:00
Looly
d9e72ddfe0 fix code 2024-01-26 18:16:31 +08:00
Looly
cba4231e4c 修复CollUtil.containsAll在coll2长度大于coll1时逻辑歧义问题 2024-01-26 16:03:46 +08:00
Looly
4df7a25cc4 add test 2024-01-23 16:29:42 +08:00
Looly
cb093e067d 修复BeanToMapCopier获取类型数组越界问题 2024-01-22 09:20:14 +08:00
Looly
ebc7c63bbe prepare 5.8.26 2024-01-11 14:06:18 +08:00
Looly
3a1c7538f3 🐶Release 5.8.25 2024-01-11 12:46:25 +08:00
Looly
2a66698ef3 修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080) 2024-01-11 12:08:39 +08:00
Looly
9ff7608d97 修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080) 2024-01-11 10:42:57 +08:00
Looly
4d6684e9ab 修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080) 2024-01-11 10:42:20 +08:00
Looly
7e81e26a6f 修复金额转换为英文时缺少 trillion 单位问题 2024-01-02 13:34:59 +08:00
Doke
82782d40d0
fix: 为NumberWordFormatter.java新增Trillion单位增加单测 2023-12-30 15:51:20 +08:00
Doke
7c5d0ec00e
fix: 修复金额转换为英文时缺少 trillion 单位
金额转换为英文时缺少 trillion 单位导致金额达到万亿时数组溢出错误
2023-12-30 15:41:24 +08:00
Looly
f651a18c1d CopyOptions中增加setAutoTransCamelCase方法 2023-12-30 01:13:42 +08:00
Golden Looly
a68d57062f
Merge pull request #3450 from holmebin/test-branch
Test branch
2023-12-29 00:25:31 +08:00
Looly
c68b9df0df WatchServer新增通过Path获取WatchKey方法 2023-12-29 00:19:48 +08:00
holmebin
c7e2720cc5 fix RandomUtil.randomInt,RandomUtil.randomLong range problem #3449 2023-12-28 23:07:44 +08:00
bwcx_jzy
d861be5aac
add WatchMonitorTest 2023-12-28 22:34:13 +08:00
bwcx_jzy
95f37beb66
新增 文件监听 WatchServer 新增通过 Path 获取 WatchKey 方法 2023-12-28 22:29:52 +08:00
Looly
ab1b2c5e48 修复StrJoin当append内容后调用length()会出现空指针问题 2023-12-26 00:41:06 +08:00
Looly
99303ef7e0 prepare 5.8.25 2023-12-24 00:15:01 +08:00
Looly
3ab447d45a 🌨️Release 5.8.24 2023-12-24 00:01:57 +08:00
Looly
e5888f6bc6 remove invalid import 2023-12-20 23:14:48 +08:00
Looly
cd79e6e5f8 修复graalvm原生打包使用http工具被转为file协议问题 2023-12-20 22:53:38 +08:00
Looly
168be856c0 Opt.ofEmptyAble支持更多类型 2023-12-15 22:00:10 +08:00
Looly
da1d89ff29 修复JavaSourceCompiler.addSource目录处理错误问题 2023-12-13 19:31:56 +08:00
Looly
c45de2b7f4 DateUtil.parse支持毫秒时间戳 2023-12-12 13:34:54 +08:00
Looly
32f2d0bd55 修复StrSplitter.splitByRegex使用空参数导致的OOM问题 2023-12-12 04:29:20 +08:00
Looly
4ab74605be FileTypeUtil增加null判断 2023-12-11 09:45:06 +08:00
Looly
9c351cfb84 fix comment 2023-12-08 23:12:17 +08:00
Looly
f85e69ab65 修复ImgUtil.convert png转jpg在jdk9+中失败问题 2023-12-05 21:48:15 +08:00
Looly
c61946650e fix comment 2023-12-04 23:27:25 +08:00
Looly
86aba711f1 fix test 2023-12-04 19:39:40 +08:00
Looly
9a69843f5e fix test 2023-12-04 19:20:33 +08:00
Looly
d09f741318 add test 2023-12-04 19:05:11 +08:00
Looly
26c0ea6a89 fix comment 2023-12-04 18:39:07 +08:00
Looly
d406130183 fix comment 2023-12-04 18:26:12 +08:00
Looly
3e098270ea add test 2023-12-03 22:34:17 +08:00
Looly
870758c3d0 fix comment 2023-12-01 18:28:35 +08:00
Looly
824460e5c5 修复CharSequenceUtil注释和引用,避免循环引用 2023-11-29 10:41:00 +08:00
Looly
7c1fafce99 修复LocalDateTime#parseDate未判断空问题问题 2023-11-14 08:50:43 +08:00
Looly
5be66c636b prepare 5.8.24 2023-11-12 19:17:19 +08:00
Looly
56fae16d1d 🚦release 5.8.23 2023-11-12 18:55:10 +08:00
Looly
a21f202ec6
!1103 fix 修复合成注解会无限递归获取映射属性的问题 Gitee#I8CLBJ
Merge pull request !1103 from Createsequence/fix-I8CLBJ
2023-11-12 10:06:58 +00:00
Looly
fa0d757c2d fix format 2023-11-12 17:29:43 +08:00
huangchengxing
10e2a248c7 fix 修复合成注解会无限递归获取映射属性的问题 Gitee#I8CLBJ 2023-11-12 17:07:35 +08:00
VampireAchao
6a97f12eb0 [Fix] 修复 github issue 3380 CollectorUtil.reduceListMap与collectors.groupby一起使用时出现与预期不符的结果 2023-11-12 16:33:31 +08:00
Looly
cbcbd1b7ff
!1097 修复合成注解在并发环境无法保证正确缓存属性值的问题(#I8CLBJ)
Merge pull request !1097 from Createsequence/fix/I8CLBJ
2023-11-09 01:30:55 +00:00
yeshwanthsripathy
cb6811a7b8 Merged with v5-dev 2023-11-08 12:47:45 -06:00
Golden Looly
40f16674b6
Merge pull request #3368 from yesh385/fix-flaky
Fixed flaky tests in hutool-core
2023-11-08 15:43:56 +08:00
yeshwanthsripathy
25b81836e6 Removing unused import 2023-11-08 01:22:02 -06:00
yeshwanthsripathy
8b3f6ba931 Reverted source code changes 2023-11-08 01:18:32 -06:00
huangchengxing
5e264d0be8 fix 修复合成注解在并发环境无法保证正确缓存属性值的问题 Gitee#I8CLBJ 2023-11-02 18:28:15 +08:00
yeshwanthsripathy
67484e1a68 Fixed 2 flaky tests 2023-10-30 12:31:46 -05:00
Looly
0101ab5668 修复ClassUtil#scanJar未正确关闭文件问题 2023-10-30 17:26:35 +08:00
Looly
b2b6a233dd fix comment 2023-10-28 21:18:26 +08:00
Looly
d119d2dc5e PathUtil增加loopFiles重载,可选是否追踪软链 2023-10-27 22:43:11 +08:00
Looly
fcd3d9f7d0 ImgUtil的sliceByRowsAndCols背景无法透明问题 2023-10-27 21:48:02 +08:00
Looly
bea36c2b5f Snowflake增加方法:根据传入时间戳,计算ID起终点 2023-10-25 11:24:43 +08:00
晚安,地球
fe37c1aa84 !1096 Snowflake增加方法:根据传入时间戳,计算ID起终点 (gitee/issues/I60M14)
* Snowflake add method:根据传入时间戳-计算ID起终点 (gitee/issues/I60M14)
2023-10-25 03:21:40 +00:00
Looly
aedda45c5f add test 2023-10-23 20:09:45 +08:00
Looly
85feecc9e9 修复DataSize.parse(size)不支持空格问题 2023-10-18 14:42:22 +08:00
Looly
733c043c0a add test 2023-10-18 11:39:58 +08:00
Looly
05d13de588 fix 2023-10-18 08:59:23 +08:00
Looly
e46474fc9a 修复特定情况下BiMap覆盖Value后,仍能通过旧Value查询到Key问题 2023-10-18 08:57:30 +08:00
libin
74452eb775 TypeUtil.getClass方法强转报错问题 2023-10-12 18:36:30 +08:00
Looly
b696c5c41f ReflectUtil.getFieldsValue增加Filter重载 2023-10-07 08:49:52 +08:00
Looly
bb9736aba6 ReflectUtil.getFieldsValue增加Filter重载 2023-10-07 08:35:57 +08:00
yeshwanthsripathy
21f6554a05 Fixed flaky tests 2023-10-03 18:52:31 -05:00
Looly
f21dfc927d 新增ProxySocketFactory 2023-09-21 17:19:35 +08:00
Looly
6d2d57e34b 修复VersionComparator在极端数据排序时候违反了自反性问题 2023-09-21 11:34:05 +08:00
Looly
58be7dcd97 add test 2023-09-20 20:52:49 +08:00
summertime-wu
34249995bf 优化 GifDecoder 类中的一处 equals 判断
使用 contentEquals(app) 直接进行 char 数组比对,避免 equals(app.toString()) 中将 StringBuilder 转为 String,会多一道 char 数组拷贝
2023-09-19 15:19:15 +08:00
handy
b119d65006 移除未使用到的import 2023-09-14 16:56:06 +08:00
Looly
bf62494be0 prepare 5.8.23 2023-09-13 21:40:23 +08:00
Looly
20f0c720c4 ♥️release 5.8.22 2023-09-13 21:00:51 +08:00
Looly
1b52428a17 update version 2023-09-13 20:57:56 +08:00
Looly
111898c640 修复LocalDateTimeUtil.of 某些特殊TemporalAccessor无法返回正确结果的问题 2023-09-13 20:33:52 +08:00
Looly
8ee13fb5bf
!1074 base64 NPE verification
Merge pull request !1074 from 蒋小小/v5-dev
2023-09-12 10:38:17 +00:00
Looly
6ad0a55362 修复CopyOptions.setIgnoreCase和setIgnoreProperties冲突问题 2023-09-12 18:28:45 +08:00
Looly
8c4b1262ef fix code 2023-09-12 18:25:57 +08:00
Looly
683a7b74bd
!1073 fix(BeanUtil),同时设置忽略大小写和忽略字段冲突问题
Merge pull request !1073 from 小怪兽说疼疼哒/fix-BeanUtil
2023-09-12 10:00:26 +00:00
bwcx_jzy
e341bd5ec2
fix base64 NPE verification 2023-09-12 17:23:54 +08:00
groundhog
0d4bb1beec fix(BeanUtil): 忽略大小写与忽略字段同时使用冲突
- https://gitee.com/dromara/hutool/issues/I80FP4
- 先以原始输入判断是否忽略,后进行忽略大小写的转换
2023-09-11 21:06:57 +08:00
groundhog
7cc7d045b5 fix(NumberUtil): parseInt逻辑先后修改
- https://gitee.com/dromara/hutool/issues/I800C9
- 十六进制中E被误判为科学技术法,修改判断先后处理
2023-09-11 00:09:57 +08:00
Looly
ce56d9331a 修复Tailer stop NPE问题\ 2023-09-08 19:13:37 +08:00
bwcx_jzy
bd746c68eb
Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2023-09-07 09:14:43 +08:00
bwcx_jzy
83c82f8e5b
fix Tailer stop NPE 2023-09-07 09:14:36 +08:00
Looly
5c4486b9f5 修复JSONUtil.parse()溢出问题 2023-09-05 14:32:28 +08:00
Looly
afbe2ce99c 修复DateUtil.age年龄计算问题 2023-09-01 09:52:14 +08:00
Looly
2808fa135d 修复修复Convert不能转换Optional和Opt问题 2023-08-31 10:52:39 +08:00
Looly
268541c5a5 修复fillColumns空指针问题 2023-08-30 22:18:56 +08:00
Looly
9ba8f9ca5d 修复SONArray的add()方法抛出OutOfMemory异常问题 2023-08-30 22:10:03 +08:00
groundhog
1792c495d1 fix(CharSequenceUtil): 新增判空
- 前置判空,方式s.toString导致的NPE
2023-08-29 15:28:26 +08:00
handy
199d3a6400 修改注释错误并添加单测 2023-08-24 09:59:58 +08:00
Mark Ashbur
cfc9ef80ed
Update CombinationAnnotationElement.java
false == declaredAnnotationMap.containsKey(annotationType)用的变量declaredAnnotationMap不对,此处应该用annotationMap。
2023-08-21 19:06:21 +08:00
Looly
713832e5fe 修复Ipv4Util.getEndIpLong 取反符号导致数据越界 2023-08-21 11:53:29 +08:00
Looly
80bdac99d9 TreeUtil增加getParentsId方法 2023-08-16 10:31:50 +08:00
Looly
b48e793646 add tesrt 2023-08-15 12:10:22 +08:00
Looly
2f23075ac2 修复FieldsComparator比较结果不正确问题 2023-08-15 09:47:01 +08:00
Looly
a7585eba9e fix test 2023-08-11 10:02:19 +08:00
Looly
d082e6f27b fix since 2023-08-10 22:23:21 +08:00
Looly
e58a6055d6 修复FileUtil无法正确识别Smb网络存储的路径问题 2023-08-10 22:03:16 +08:00
Looly
6d100e4e0c gts 2023-08-08 20:02:43 +08:00
Looly
4ffb48412b
!1051 [bug修复] 修复因使用反射读取JSON自定义类型导致性能下降为原来1/3的问题 by SHA-1: 5b2d2050d2
Merge pull request !1051 from 周鹏/v5-master
2023-08-08 11:57:45 +00:00
Looly
170c083907 修改异常包装策略:运行时异常不包装,只包装非运行时异常 2023-08-08 19:03:49 +08:00
zhoupeng
7a30dff976 修复因使用反射读取JSON自定义类型导致性能下降为原来1/3的问题
by SHA-1: 5b2d2050d2
2023-08-07 18:54:01 +08:00
Looly
e66681936f add test 2023-08-07 18:26:17 +08:00
Looly
be3312d2e0 修复DateUtil.parse 给定一个时间解析错误问题 2023-08-07 11:13:29 +08:00
Looly
0621543ae3 修复PathUtil.moveContent当target不存在时会报错问题 2023-08-02 17:43:32 +08:00
Looly
c45b3fccda NumberUtil.toBigDecimal转换科学计数法问题 2023-08-02 17:07:31 +08:00
Looly
a0eeefefe9 DesensitizedUtil增加清空策略 2023-08-02 11:26:49 +08:00
Looly
cbcd31910b nullToZero增加重载 2023-08-02 11:12:33 +08:00
Looly
8415a24700 prepare 5.8.22 2023-07-29 14:18:50 +08:00
Looly
d179823a2a UrlResource增加size方法 2023-07-29 13:05:39 +08:00
xiejiayu
5df769de0e 版本比较器支持 compare("1.0.3", "1.0.2a") > 0 2023-07-21 14:15:46 +08:00
Looly
4624b16751 修复JSONBeanParser在遇到List时没有被正确递归问题 2023-07-20 23:39:24 +08:00
Looly
2c9d579c59 修复MVEL加载错误问题 2023-07-20 08:45:09 +08:00
Looly
a74a8c7877 修复MVEL加载错误问题 2023-07-20 08:41:23 +08:00
Looly
47cba89085 ZipReader增加setMaxSizeDiff方法,自定义或关闭ZipBomb 2023-07-20 08:19:06 +08:00