Commit Graph

1765 Commits

Author SHA1 Message Date
Golden Looly
8039ed6df8
Merge pull request #1868 from anaer/patch-10
Update TreeBuilder.java
2021-09-30 17:36:40 +08:00
Golden Looly
ca67bcbf95
Merge pull request #1869 from anaer/patch-11
Update TreeUtil.java
2021-09-30 17:35:55 +08:00
Golden Looly
bf83503320
Merge pull request #1870 from anaer/patch-12
Update Assert.java
2021-09-30 17:35:16 +08:00
lvcn
5fb8f1b857 fix typo, removeEqual对value为null情况未处理 2021-09-30 17:20:44 +08:00
anaer
2d9ef86951
Update Assert.java
fix comment
2021-09-30 16:16:23 +08:00
anaer
05506ec2ed
Update TreeUtil.java
typo
2021-09-30 15:06:21 +08:00
anaer
c50b1b302f
Update TreeBuilder.java
跟上面的checkBuilt(); 重复了
2021-09-30 14:54:31 +08:00
anaer
cd1a372ab1
Update PathUtil.java
typo
2021-09-30 11:10:54 +08:00
anaer
94342c6682
Update ListTypeGetter.java
typo
2021-09-29 17:23:50 +08:00
anaer
be8df2bf67
Update StopWatch.java
fix comment
2021-09-29 17:09:36 +08:00
anaer
cc18205c9e
Update DateUtil.java
fix comment
2021-09-29 16:57:10 +08:00
Looly
58355265ff fix code 2021-09-29 11:59:24 +08:00
Looly
43e24c1498 !421 处理了Collectors.toMap未指定key重复策略 导致的java.lang.IllegalStateException: Duplicate key 问题
Merge pull request !421 from 阿超/v5-dev
2021-09-29 03:37:29 +00:00
Looly
451ebb6bcc fix comment 2021-09-29 11:36:32 +08:00
Golden Looly
659ebbd62a
Merge pull request #1860 from wangliang181230/optimize-base64
优化Base64.isBase64方法:减少一次多余的判断
2021-09-29 11:10:15 +08:00
王良
a7bfa8e114 Base64.isBase64方法,减少一次多余的判断。 2021-09-29 10:55:43 +08:00
Looly
ca0e66d9b4 add methods 2021-09-29 10:51:44 +08:00
Golden Looly
e6d2296350
Merge pull request #1857 from anaer/patch-5
Update BeanUtil.java
2021-09-29 10:04:31 +08:00
anaer
cd01a063ee
Update BeanUtil.java
typo
2021-09-28 17:53:07 +08:00
achao
651bca7c99 处理了Collectors.toMap未指定key重复策略 导致的java.lang.IllegalStateException: Duplicate key 问题 2021-09-28 16:36:24 +08:00
anaer
4b8774fb70
Update ClassUtil.java
typo
2021-09-28 10:48:06 +08:00
Looly
36397e615d fix comment 2021-09-28 01:33:04 +08:00
Looly
aaaf2b7f03 fix firstday 2021-09-28 01:22:26 +08:00
Looly
0ff44155c7 add test 2021-09-28 00:56:12 +08:00
Looly
f1b6d84fe7 fix code 2021-09-28 00:24:26 +08:00
Looly
1072639f3b add method 2021-09-28 00:14:58 +08:00
Looly
9642fa8862 fix code 2021-09-28 00:07:13 +08:00
Looly
75d84b4768 add method 2021-09-27 22:53:12 +08:00
Looly
ed85f81cea fix test 2021-09-27 22:36:14 +08:00
zeyu cai
edd57e82d4 fix flaky test cn.hutool.core.util.JAXBUtilTest#beanToXmlTest. no performance regress related. test file changed only. 2021-09-27 04:57:04 -05:00
Looly
1ab9b6b3e9 fix get null bug 2021-09-27 11:56:33 +08:00
Looly
6db6d70293 add test 2021-09-25 19:42:40 +08:00
Looly
ce33b3d5cb add test 2021-09-25 18:53:12 +08:00
Looly
bebacf2d00 fix split 2021-09-25 18:20:12 +08:00
Looly
e16ec27c40 add iter 2021-09-25 11:25:51 +08:00
Golden Looly
35b9212103
Merge pull request #1841 from Hccake/v5-dev
在做字符串切割时,允许传入 mapping 方法,来对切割后的元素做一个处理
2021-09-25 09:49:25 +08:00
Looly
d243764d51 change date converter 2021-09-24 23:22:31 +08:00
Looly
7b6593fe68 add YamlUtil 2021-09-24 15:29:56 +08:00
Hccake
f1eb5cc439 Allows to customize the mapping method for each element in a list after splitting a string 2021-09-24 12:17:06 +08:00
Looly
0c3980d0fd prepare 5.7.14 2021-09-17 22:54:34 +08:00
Looly
aa9b827057 🌵release 5.7.13 2021-09-17 22:36:10 +08:00
Looly
59be04e0a5 add test 2021-09-17 21:15:04 +08:00
Looly
545e2d4774 fix comment 2021-09-17 20:11:18 +08:00
Looly
b935ace121 add method 2021-09-17 20:02:41 +08:00
Looly
2f57c2aaf9 !416 CollUtil新增2个互换元素位置的静态方法
Merge pull request !416 from TanLongHui/v5-dev
2021-09-17 11:54:44 +00:00
Looly
aafcecc3d9 add method 2021-09-17 19:29:18 +08:00
Looly
96c83cb16b fix bug 2021-09-17 19:15:43 +08:00
TLH
3fc4d134af CollUtil新增2个互换元素位置的静态方法以及对应单元测试
方法1:swapIndex   指定列表元素A与索引index所在元素互换位置
方法2:swapElement 指定列表元素A与列表元素B互换位置
2021-09-15 16:02:20 +08:00
bob.guo
26b6838339 isLinked 为true时 创建的是linkList 2021-09-14 10:06:00 +08:00
Looly
1b0d5d2cf1 fix bug 2021-09-14 09:58:21 +08:00
Looly
46cffe4ed2 add author 2021-09-13 12:00:57 +08:00
Looly
612441615d change method param 2021-09-13 11:53:12 +08:00
Looly
d3f946dd33 change position of trim 2021-09-13 09:15:42 +08:00
Looly
fefd88b358 fix test 2021-09-12 01:43:12 +08:00
Looly
bf8906eb48 fix frgment encode 2021-09-12 01:19:16 +08:00
Looly
07c69efa92 fix test 2021-09-12 00:15:30 +08:00
Looly
a7817ab5b0 add config 2021-09-11 23:44:38 +08:00
Looly
f08ae8cf7d fix code 2021-09-10 21:17:41 +08:00
Looly
783a02cce4 fix bu 2021-09-10 19:51:46 +08:00
Looly
caab40f8ea fix code 2021-09-10 19:25:44 +08:00
Looly
22a3c3a936 fix code 2021-09-10 19:25:33 +08:00
Looly
0595b91634 fix bug 2021-09-10 19:24:04 +08:00
Looly
ba4fabb88c fix pink bug 2021-09-10 19:07:08 +08:00
Looly
a0f407865e fix code 2021-09-10 09:32:00 +08:00
Looly
7a25b73376 prepare 5.7.13 2021-09-09 23:18:33 +08:00
Looly
9a736580ac 🥔release 5.7.12 2021-09-09 21:51:02 +08:00
Looly
feed45c12c fix bug 2021-09-09 19:29:00 +08:00
Looly
a1ee4d27c3 fix bug 2021-09-09 19:15:43 +08:00
Looly
02885bbcd3 add ZUC 2021-09-09 16:14:37 +08:00
Looly
5be6c0103b add test 2021-09-09 11:53:11 +08:00
Looly
57c191fe1c Merge branch 'v5-dev' of gitee.com:dromara/hutool into v5-dev 2021-09-08 12:12:55 +08:00
Looly
5ae924b9c6 fix path 2021-09-08 12:09:31 +08:00
Looly
afce68cd1c !410 更改CollUtil#emptyIfNull入参名称更加合理
Merge pull request !410 from 这个网名不错/v5-dev
2021-09-08 03:57:31 +00:00
Looly
8ddf18fb7a add interface 2021-09-08 11:11:27 +08:00
lixiaohua
443aca6c78 rename 2021-09-08 10:08:31 +08:00
Looly
4c237ba95e add test and change AES costructor 2021-09-07 23:54:57 +08:00
Looly
c50a63a196 fix bug 2021-09-07 14:51:07 +08:00
Looly
758fb793fc add method 2021-09-07 13:33:37 +08:00
Looly
36cf627f3d add method 2021-09-06 17:59:01 +08:00
Looly
7379e27d56 add method 2021-09-06 16:12:33 +08:00
Looly
3acb81a58a fix bug 2021-09-06 09:52:22 +08:00
Looly
186eeb8054 add test 2021-09-02 15:07:38 +08:00
Looly
4a384f6a5c deprecate OptionalBean 2021-09-02 13:56:19 +08:00
Golden Looly
efa9828cdd
Merge pull request #1805 from anaer/patch-1
Update CharsetDetector.java
2021-09-01 22:28:12 +08:00
Looly
303c77a08d add null check 2021-09-01 22:14:15 +08:00
anaer
69ee7ba40a
Update CharsetDetector.java
typo
2021-09-01 17:25:43 +08:00
Looly
fa6882f480 prepare 5.7.12 2021-08-31 22:44:06 +08:00
Looly
c36f9f55db 🍱release 5.7.11 2021-08-31 17:36:43 +08:00
Looly
838a3ecfa4 fix commnet 2021-08-31 08:32:39 +08:00
Looly
fca32ecefd add test 2021-08-30 12:52:10 +08:00
Looly
424e6e817e add test 2021-08-30 12:22:54 +08:00
Looly
9ba4b008b2 add constrctor 2021-08-30 10:59:11 +08:00
Looly
3e23982329 add docx check 2021-08-30 09:32:21 +08:00
Looly
9a4202ee7d prepare 5.7.11 2021-08-27 01:08:59 +08:00
Looly
611039ae67 🍳release 5.7.10 2021-08-27 00:50:59 +08:00
Looly
e800b9cc3a add alias support 2021-08-27 00:47:24 +08:00
Golden Looly
9bae66f219
Merge pull request #1792 from Inmord/v5-dev-optimal-comb
当n = m时,C(n, m) = C(n, n) = 1。
2021-08-26 23:47:51 +08:00
Looly
d66efef873 add constructor 2021-08-26 23:40:28 +08:00
Looly
c0510a4c66 !403 exception工具类优化
Merge pull request !403 from 赵龙波/v5-dev
2021-08-26 15:31:11 +00:00
Looly
8adf96eaab add methods 2021-08-26 23:27:37 +08:00
zhaolongbo
40a6ffbea0 创建异常对象时会调用父类Throwable的fillInStackTrace()方法生成栈追踪信息,这部分对系统性能开销很大。JDk7开始 异常类增加了爬栈开关,这里同样增加构造方法方便根据业务情况自定义是否关闭和打开 2021-08-26 22:28:41 +08:00
刘生平
ad5bba2703 当n = m时,C(n, m) = C(n, n) = 1。 2021-08-26 21:05:07 +08:00
Looly
548852670c Merge branch 'v5-dev' of gitee.com:dromara/hutool into v5-dev 2021-08-26 17:15:35 +08:00
qiuxuquan
e9b4400747 修正方法注释 2021-08-26 06:58:51 +00:00
Looly
d0aff3e3cd add methods 2021-08-26 11:58:02 +08:00
Looly
b88de146f6 add method 2021-08-26 11:49:52 +08:00
Looly
8e5ad32e70 add method 2021-08-25 15:25:25 +08:00
Looly
9a21da9c78 add FuncComparator 2021-08-24 23:13:10 +08:00
Looly
f06a04a965 add method 2021-08-22 19:06:25 +08:00
Looly
40828f69d1 add method 2021-08-22 17:53:02 +08:00
Looly
8be645e9fb !397 将list集合平均分成多个list
Merge pull request !397 from lileming/v5-dev
2021-08-22 08:49:42 +00:00
Looly
d52c32154a fix code 2021-08-20 16:30:31 +08:00
lileming
62712e8ed6 将集合平均分成多个list 2021-08-20 11:49:30 +08:00
Looly
d19e78b202 fix code 2021-08-20 08:48:02 +08:00
Golden Looly
da2ddf263a
Merge pull request #1774 from Xxpain/v5-dev
优化代码
2021-08-20 08:40:38 +08:00
super.xie
8180674d21 去除未使用的导入语句 2021-08-20 01:28:41 +08:00
super.xie
44a45a7d04 复用已存在方法 2021-08-20 01:26:38 +08:00
Looly
7c6d7526b6 add format support 2021-08-19 18:27:42 +08:00
duandazhi
c92ccb7316 1、DateUtil yyyy-MM-dd HH:mm:ss.SSSSSS 格式支持
2、DateConverter 增加验证, 入参是 空串,返回null, 而不是抛异常; (生产环境会出现 空串的情况; 异常交给调用者自行抛出)
2021-08-19 16:17:20 +08:00
Looly
dbc4fd62ce fix sort bug 2021-08-19 14:36:07 +08:00
Looly
9d8f00e049 add methods 2021-08-19 11:39:13 +08:00
Looly
5dce48db5e add methods 2021-08-18 21:43:49 +08:00
Looly
8c1fced281 add Partition 2021-08-18 18:28:29 +08:00
Looly
9b58b8295a fix config 2021-08-18 09:24:54 +08:00
Looly
2b04713104 add page 2021-08-17 21:57:41 +08:00
Golden Looly
c6291993f9
Merge pull request #1761 from luckymorning/v5-dev
增加列表分页并逐页返回数据的工具方法
2021-08-17 21:34:09 +08:00
Looly
d29cd5c9ea add NammingCase 2021-08-17 16:56:11 +08:00
Looly
0060d5ebbb fix code 2021-08-17 16:14:28 +08:00
Looly
83cbd4ea20 prepare 5.7.10 2021-08-17 08:21:30 +08:00
Looly
4821ca3911 🍿release 5.7.9 2021-08-17 08:02:39 +08:00
Looly
3fe722554c fix bugs 2021-08-16 22:33:30 +08:00
Looly
f288c497b8 add check 2021-08-16 21:11:28 +08:00
Looly
ae1eb46e90 fix test 2021-08-12 18:23:42 +08:00
Looly
94584edb9b prepare 5.7.9 2021-08-12 13:15:21 +08:00
Looly
2d9ce5f9ba 🌯release 5.7.8 2021-08-12 13:02:41 +08:00
wangchen
270a97116a 增加列表分页方法 2021-08-12 10:36:26 +08:00
Looly
1fbc6b61bd fix comment 2021-08-12 00:22:38 +08:00
Looly
05c679bfc5 fix test 2021-08-12 00:19:22 +08:00
Looly
884ac2e765 fix 2021-08-12 00:02:45 +08:00
Looly
aeef8b9e8a add ChannelCopier 2021-08-11 23:53:12 +08:00
Looly
c54f2a154a add IoCopier 2021-08-11 23:30:47 +08:00
Looly
9dd7b0a904 change to extend 2021-08-11 21:13:02 +08:00
Looly
6dc8524e69 fix comment 2021-08-11 11:41:06 +08:00
Looly
b048cc7fd7 fix test 2021-08-11 09:20:32 +08:00
Looly
163ce2a67c fix comment 2021-08-11 00:29:56 +08:00
Looly
7cbba42e94 fix methods 2021-08-11 00:27:31 +08:00
Looly
b286f3743d add null check 2021-08-10 21:38:34 +08:00
Looly
e89ca1ace3 add test 2021-08-10 21:19:29 +08:00
Looly
7b667a817a add readFromStr 2021-08-10 21:09:06 +08:00
Golden Looly
80898f74f4
Merge pull request #1755 from devzhi/v5-dev
CsvUtils增加直接读取字符串相关功能
2021-08-10 21:04:04 +08:00
Looly
93a51253e7 add test 2021-08-10 20:56:20 +08:00
Looly
ae753045ec !395 【轻量级pr】formatBetweenTest 新增一个 测试类, formatBetweenTest2
Merge pull request !395 from dazer007/v5-dev
2021-08-10 12:55:00 +00:00
Looly
8ddb2b425c add methods 2021-08-10 20:54:31 +08:00
devzhi
41480c8ee5 CsvUtils增加直接读取字符串相关功能 2021-08-10 14:56:03 +08:00
duandazhi
55a573f96e 【轻量级pr】formatBetweenTest 新增一个 测试类, formatBetweenTest2 2021-08-10 10:44:12 +08:00
Looly
838a2c45a6 fix float bug 2021-08-09 21:40:17 +08:00
Looly
26846d0fde fix comment 2021-08-08 22:14:24 +08:00
Looly
df726654af add JSONBeanParser 2021-08-08 21:36:37 +08:00
Looly
a9282b9d7c fix format 2021-08-08 20:01:02 +08:00
Looly
9acc216f90 add cpmpress 2021-08-07 23:32:48 +08:00
Looly
27e8aa6043 add test 2021-08-06 10:38:49 +08:00
Looly
c0fdd353cd Mapproxy support set return this 2021-08-06 09:59:00 +08:00
Looly
217ac3f708 !392 fix bug https://gitee.com/dromara/hutool/issues/I4402K
Merge pull request !392 from 申劭明/14402K
2021-08-06 01:48:43 +00:00
Looly
955b65fbb4 fix comment 2021-08-06 09:41:20 +08:00
申劭明
844c4be0bf add test for mapProxy 2021-08-05 06:10:50 +00:00
申劭明
2e628b08c5 fix bug #I4402K 2021-08-05 06:09:50 +00:00
Looly
89e412d985 prepare 5.7.8 2021-08-02 20:40:35 +08:00
Looly
05ad11175b 🥗release 5.7.7 2021-08-02 20:29:01 +08:00
Looly
c7d2d389f0 fix comment 2021-08-02 20:27:41 +08:00
Looly
08ebcad848 add methods 2021-08-02 20:16:04 +08:00
Looly
72af4101bc enhance parseUTC 2021-08-02 13:41:54 +08:00
Looly
69b981e8c0 fix del bug 2021-08-02 12:08:57 +08:00
bwcx_jzy
46f1bc7662 file.delete sync PathUtil 2021-08-02 10:24:50 +08:00
bwcx_jzy
7539cfea11 能遇到只读文件,无法删除.使用 file 方法删除 2021-08-02 10:11:24 +08:00
bwcx_jzy
1f070fc5e4 可能遇到只读文件,无法删除,先尝试处理权限 2021-08-02 10:05:07 +08:00
Looly
74b4b68bb0 change longest common text 2021-08-01 20:54:28 +08:00
Golden Looly
5e42622a8b
Merge pull request #1736 from Xxpain/fix_typo
fix typos
2021-08-01 09:15:04 +08:00
Looly
e784e1fcd4 add test 2021-08-01 08:33:01 +08:00
shaofei.xie
ec8a55cbae fix typos 2021-07-30 17:19:33 +08:00
Looly
09ae727b81 add util 2021-07-30 13:42:39 +08:00
Looly
02b68f970b add test 2021-07-30 09:45:57 +08:00
Looly
57dbe23961 fix tel regex 2021-07-29 15:18:46 +08:00
董舒克
d339f607a3 增加新的固话方法测试 2021-07-29 13:28:59 +08:00
董舒克
c7bfb103d8 1.修改固话号码的正则表达式可以获取号码部分
2.增加获取固话号码中号码部分方法
2021-07-29 13:12:10 +08:00
董舒克
07b589d2b3 固话号码必须存在区号 2021-07-29 12:59:53 +08:00
董舒克
c18ff939d3 1.修改固话号码正则表达式常量
2.添加获取固话号码区号方法
2021-07-29 12:46:08 +08:00
Looly
d4f16133de fix comment 2021-07-28 23:27:52 +08:00
Looly
a8e1edaa6c fix comment 2021-07-28 23:22:32 +08:00
Looly
50c9337ea0 add methods 2021-07-28 23:18:31 +08:00
Looly
520b503065 add method 2021-07-28 22:00:04 +08:00
Looly
05495ba8ed add LookupFactory and MethodHandleUtil 2021-07-28 21:07:55 +08:00
Looly
62df0171a4 fix comment 2021-07-28 18:17:48 +08:00
Looly
88d4f11c6d prepare 5.7.7 2021-07-28 02:16:25 +08:00
Looly
9f1920e498 fix bug 2021-07-28 01:43:52 +08:00
Looly
b8c07fd098 !384 修复ByteUtil工具类大小端转换问题
Merge pull request !384 from ZhouChuGang/v5-dev
2021-07-27 17:35:54 +00:00
Looly
085453e7d8 5.7.6 2021-07-28 00:36:42 +08:00
Looly
c3f1fe50e4 fix convert bug 2021-07-28 00:35:03 +08:00
QunXingShanShuo
d4a7ddac3b feat: 修复ByteUtil工具类大小端转换问题
修复ByteUtil工具类大小端转换问题
2021-07-27 17:08:13 +08:00
Looly
fca211de07 prepare 5.7.7 2021-07-27 09:27:37 +08:00
Looly
464c7551a6 🍼release 5.7.6 2021-07-27 09:19:30 +08:00