Commit Graph

2840 Commits

Author SHA1 Message Date
任世杨
b62e99d573 docs:纠正Opt.filter方法的文档描述 2023-03-07 14:30:58 +08:00
Looly
bf6871fb6d prepare 5.8.15 2023-03-05 23:18:04 +08:00
Looly
4c9ddb666c 🐸release 5.8.14 2023-03-05 22:47:27 +08:00
Looly
52617b2032 修复FileUtil.moveContent会删除源目录的问题 修复HttpBase.body导致的空指针问题 2023-03-05 22:45:36 +08:00
Looly
51c29abcad 去除冗余插件 2023-03-04 13:48:40 +08:00
Looly
460d09f25b prepare 5.8.14 2023-03-03 23:45:00 +08:00
Looly
09351d3b9d 🐶release 5.8.13 2023-03-03 23:33:42 +08:00
Looly
3dfdd86ca0 修复JWT自定义时间格式后的时间戳转换问题 2023-03-03 23:26:59 +08:00
Looly
2cdce52d4a add test 2023-03-03 22:12:51 +08:00
Looly
a717d03420 JavaSourceCompiler#compile增加自定义options重载 2023-03-03 20:51:46 +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
f5cb27a608 根据JDK-8080225修改了部分新建文件输入流和文件输出流的创建方式 2023-02-28 22:45:56 +08:00
Looly
46b9633768 build(pom): 添加 Automatic-Module-Name属性 2023-02-28 22:34:17 +08:00
Looly
5fcd4093be PhoneUtil.isTel400800支持400-XXX-XXXX格式 2023-02-28 22:18:57 +08:00
Looly
819bf98d50 修复MutableObj.equals空指针问题 2023-02-24 15:44:38 +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
ae4d79ebd6 修复Tailer文件内容跟随在调用stop后,文件依旧被占用问题 2023-02-21 12:00:14 +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
Looly
d0a2b90c55 prepare 5.8.13 2023-02-09 21:23:56 +08:00
Looly
9dbdf1423e 🍳release 5.8.12 2023-02-09 21:15:09 +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
db108e1ca9 DateUtil.date方法统一修改规则,传入null返回null 2023-02-09 20:31:17 +08:00
Golden Looly
c64b38244b
Merge pull request #2877 from 847689421/v5-dev
修复DateUtil.date(java.time.temporal.TemporalAccessor)方法入参为null时报NullPointerException异常问题,调整为入参为null时return null
2023-02-09 20:06:20 +08:00
Golden Looly
a15cb6fed5
Merge pull request #2869 from zhaomoran/v5-master
修改注释:通过key获取的始终是同一对象和参数无关
2023-02-09 20:04:29 +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
Looly
648a8e9443
!929 修复Ipv4Util.list()方法的bug
Merge pull request !929 from emptypoint/fix-bug-Ipv4Util
2023-02-09 11:06:25 +00:00
Looly
02e85a80e5 【重要】删除XmlUtil.readObjectFromXml方法,避免漏洞 2023-02-09 18:31:54 +08:00
mochouZero555
6a0ff8b4c3 IssueI6DDJ4,IoUtil.read()文档修复,读取完毕后关闭流 2023-02-08 09:04:24 +08:00
ZZemptypoint
1d1061eae6 fix bug Ipv4Util.list(String,String)方法生成的ip不全; 2023-02-04 21:44:59 +08:00
subin
aadd768c92 修复DateUtil.date(java.time.temporal.TemporalAccessor)方法入参为null时报NullPointerException异常问题,入参为null时return null 2023-02-01 17:31:52 +08:00
zhiqiang94@vip.qq.com
739a8382af 修复XmlUtil.toStr方法注释(omitXmlDeclaration表示为忽略 xml Declaration) 2023-02-01 17:27:39 +08:00
Looly
4450208e54 fix doc 2023-01-31 09:48:58 +08:00
mrzhao
baa782ea27
修改注释:通过key获取的始终是同一对象和参数无关 2023-01-29 11:39:26 +08:00
Golden Looly
02630160ce
Merge pull request #2864 from mcp2016/备注信息的错误修改
备注信息的错误修改
2023-01-19 11:39:06 +08:00
Golden Looly
36816bac59
Merge pull request #2865 from mcp2016/针对coll1为只读集合的补偿
针对CollUtil.subtract coll1 为只读集合的补偿
2023-01-19 11:37:37 +08:00
hellozrh
c9061f388c 调整方法注释,保证准确性。 2023-01-18 09:20:06 +08:00
hellozrh
c660d79bf2 解决excel读到时空白行rowHanler重复执行的问题。 2023-01-18 09:20:05 +08:00
Looly
9994083fe1 修复ClassScanner自定义classload无效问题 2023-01-17 17:30:45 +08:00
Looly
9183a9100e DesensitizedUtil增加对IPv4和IPv6支持 2023-01-17 17:07:18 +08:00
Looly
b958f9f9d2 修复IoUtil.readBytes使用SocketInputStream读取不完整问题 2023-01-17 16:40:45 +08:00
mcp
57ea3a31a3 cn.hutool.core.collection.CollUtil.subtract 针对 coll1 为只读集合的补偿 2023-01-17 16:29:43 +08:00
mcp
faf5994fe0 cn.hutool.core.bean.BeanUtil.isMatchName 备注信息的错误修改 2023-01-17 14:59:54 +08:00
Looly
b212fdc685 修复FileUtil的rename在newName与原文件夹名称一样时,文件夹会被删除问题 2023-01-15 11:35:31 +08:00
Golden Looly
c80fc89952
Merge pull request #2811 from bigbeef/v5-master
WGS84 坐标与墨卡托投影互转
2023-01-15 11:28:26 +08:00
Looly
9aef56a973 重构根据file magic number判断文件类型 2023-01-15 11:27:08 +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
554b828745 XmlUtil.readObjectFromXml增加注入漏洞的警告注释,并标识为废弃 2023-01-15 11:08:09 +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
09a2dc3807 prepare 5.8.12 2022-12-27 22:14:45 +08:00
Looly
61dbf0ffe2 🐧release 5.8.11 2022-12-27 22:02:14 +08:00
Looly
837489aa1a fix comment 2022-12-27 21:50:01 +08:00
Looly
582f9e7a8c 修复CoordinateUtil坐标转换参数错误 2022-12-27 21:40:59 +08:00
Looly
200c098b29 修复ConverterRegistry中无效加载导致的问题 2022-12-27 20:48:28 +08:00
Golden Looly
0cf4a8d6c1
Merge pull request #2816 from 847689421/v5-dev
BooleanUtil增加toString(Boolean bool, String trueString, String falseString, String nullString)方法
2022-12-27 20:25:27 +08:00
Looly
1e11bd5da5 修复IndexedComparator导致的数据错乱问题(ExcelWriter使用部分别名导致字段丢失) 2022-12-27 19:59:35 +08:00
Looly
b78657f67f 修复UrlBuilder中参数中包括"://"判断错误问题 2022-12-27 19:41:52 +08:00
大黄蜂coder
1950b783ab
修正20037508不不准确的问题 2022-12-26 17:08:36 +08:00
TomXin
0c31def7b8 修复Gitee issue #I66CIR 2022-12-21 17:16:13 +08:00
subin
d63d28106a BooleanUtil增加toString(Boolean bool, String trueString, String falseString, String nullString)方法 2022-12-19 22:18:16 +08:00
大黄蜂coder
bc306e56de
WGS84 坐标与墨卡托投影互转
WGS84 坐标与墨卡托投影互转
2022-12-15 18:24:46 +08:00
Looly
ecde508346 修复ZIP bomb漏洞 2022-12-14 16:29:39 +08:00
Looly
3346ef025b fix doc 2022-12-11 16:25:12 +08:00
Looly
0d495e34b3 修复getMultistageReverseProxyIp未去除空格问题 2022-12-05 23:42:00 +08:00
Looly
b0bfbd8ec3 修改PhoneUtil容易歧义的注释 2022-11-29 19:37:19 +08:00
Looly
c3470ab288 Merge branch 'v5-dev' of github.com:dromara/hutool into v5-dev 2022-11-28 10:26:38 +08:00
Golden Looly
5f10d2d025
Merge pull request #2755 from LuisStruggle/v5-dev
HtmlUtil中escape方法,增加不断开空格(nbsp)转译,防止xss攻击
2022-11-28 10:23:11 +08:00
Looly
5aa8e9d9a6 add test 2022-11-28 10:22:40 +08:00
Looly
d29b87c36f SyncFinisher线程同步结束器添加立即结束方法 2022-11-26 12:13:39 +08:00
Looly
8767b1edc1
!879 线程同步结束器添加立即结束方法
Merge pull request !879 from 不忘初心/v5-dev
2022-11-26 04:11:16 +00:00
Looly
d6134f707d 修复BiMap中未重写computeIfAbsent和putIfAbsent导致双向查找出问题 2022-11-26 12:07:20 +08:00
bwcx_jzy
7c8cc27ad9
线程同步结束器添加立即结束方法 2022-11-25 13:17:58 +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
LuisStruggle
31bcd02732 html防止注入转译,增加不断开空格(nbsp)转译 2022-11-24 10:53:32 +08:00
Looly
ff0e3ea52b CharUtil.isBlankChar增加\u180e 2022-11-17 12:05:05 +08:00
Looly
052b0dc8d3 prepare 5.8.11 2022-11-17 09:19:20 +08:00
Looly
47479f45a7 🐶release 5.8.10 2022-11-17 09:01:29 +08:00
Looly
8db6cb041b add test 2022-11-17 02:17:39 +08:00
Looly
a4e7ee5c91
!867 修复字节数组转float 返回类型却是double的bug
Merge pull request !867 from sony_7/v5-master
2022-11-16 17:24:38 +00:00
zhangqq
5bd8a298ba 修复字节数组转float 返回的值却是double类型的bug 2022-11-14 19:22:54 +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
fa115dffbc 回滚 2022-11-10 12:11:56 +08:00
Golden Looly
7a10881d30
Merge pull request #2723 from kiritoowo/v5-dev
1.[bug修复] key为弱引用 value为强引用 会导致key无法被回收 弱引用失效
2022-11-10 11:16:53 +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
ljm
7152b5b21f 1.修复BUG key为弱引用 value为强引用 会导致key无法被回收 弱引用失效 2022-11-09 18:45:05 +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
3776f5a1ef 修复DefaultTrustManager空指针问题 2022-11-08 19:10:49 +08: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
Looly
a48e79b03f 修复TreeBuilder中使用HashMap导致默认乱序问题 2022-11-03 22:20:57 +08:00
Looly
f2249f449e 修复拼写错误 2022-11-02 23:57:52 +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
Looly
7b23328d3f 修复IoUtil.copyByNIO方法写出时没有flush的问题 2022-10-27 18:51:00 +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
4c0d594e99 修复Partition计算size除数为0报错问题 2022-10-24 12:09:31 +08:00
Looly
59e1c64467 prepare 5.8.10 2022-10-22 23:17:52 +08:00
Looly
1de812e255 🐽release 5.8.9 2022-10-22 22:53:24 +08:00
Looly
ab35ba10a2 fix code 2022-10-22 22:16:26 +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
7fe72ce51b add ppt type 2022-10-18 09:20:34 +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
Looly
f31eb8512e
!837 ReflectUtil.invokeRaw方法 对检查用户传入参数时,对于类型不同的字段,尝试转换,转换失败后的操作
Merge pull request !837 from 高邮湖徐先生/v5-dev
2022-10-16 12:50:27 +00: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
xudeping
5189fa52dd fix:ReflectUtil.invokeRaw 对于类型不同的字段,尝试转换,转换失败则使用原对象类型 2022-10-14 17:33:00 +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
Looly
9abe1073af
!836 cn.hutool.core.util.PrimitiveArrayUtil 注释错误
Merge pull request !836 from 高邮湖徐先生/v5-dev
2022-10-13 09:42:41 +00:00
xudeping
1ae03284e8 分割注释修改
添加生序降序分割线注释
2022-10-13 15:51:20 +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
bwcx_jzy
311829660f
add UrlBuilder getPortWithDefault 2022-10-13 15:23:33 +08:00
Looly
dca6cbe4b1 修复MapToMap中ignoreNullValue无效问题 2022-10-12 14:39:02 +08:00
bwcx_jzy
ca40d7448e
fix MapToMap ignoreNullValue 2022-10-12 12:46:12 +08:00
bwcx_jzy
1be615c822
fix MapToMap ignoreNullValue 2022-10-12 12:44:07 +08:00
Looly
c12102e89b 修复LRUCache移除事件监听失效 2022-10-12 00:11:32 +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
V9S
a058ff4595 fix doc 2022-10-09 10:17:05 +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
Golden Looly
730d5a00e2
Merge pull request #2636 from samho2008/patch-20220929
Fix typo: 维度 -> 纬度
2022-09-30 19:25:31 +08:00