Commit Graph

932 Commits

Author SHA1 Message Date
Looly
7f8ee058e7 prepare 5.4.7 2020-10-23 23:18:05 +08:00
Looly
e2a7c06af9 release 5.4.6 2020-10-23 23:00:53 +08:00
Looly
e79369951d update version 2020-10-23 22:56:38 +08:00
Looly
1b90832f91 add method 2020-10-23 21:49:29 +08:00
Looly
30695b906b !199 ObjectUtil返回对象增加自定义处理后返回,如果不存在则返回用户定义类型的默认对象.
Merge pull request !199 from Min/v5-dev
2020-10-23 21:44:35 +08:00
不忘初心
fe9bf4a183 linux 中的快捷方式照成死循环(node_modules) 2020-10-23 14:52:39 +08:00
liliexuan
34f20cb4d5 返回对象增加自定义处理后返回,如果不存在则返回用户定义类型的默认对象. 2020-10-23 12:43:45 +08:00
Looly
d3bbc99076 add ua 2020-10-23 11:30:29 +08:00
Looly
bee588de3c fix test 2020-10-22 11:35:29 +08:00
Looly
f881d083a9 fix ListUtil.page 2020-10-22 10:56:22 +08:00
Looly
5db99b05cb !198 ListUtil.page方法
Merge pull request !198 from lucky44/v5-dev
2020-10-22 10:39:45 +08:00
Looly
3738bcab73 fix comment 2020-10-22 10:34:37 +08:00
haochen.li
5208e5b02d ListUtil的page方法
调用PageUtil.setFirstPageNo(),如果firstPageNo不是从0开始计算会发生错误
2020-10-21 22:42:43 +08:00
haochen.li
c4a91615b4 ListUtil的page方法
调用PageUtil.setFirstPageNo(),如果firstPageNo不是从0开始计算会发生错误
2020-10-21 21:38:43 +08:00
Looly
f0399a72ad change NumberUtil.toStr 2020-10-21 13:38:20 +08:00
Looly
59202e8061 add test 2020-10-21 13:21:05 +08:00
Looly
4e46606e60 fix bean bug 2020-10-21 13:12:02 +08:00
Golden Looly
e2f3a3b622
Merge pull request #1175 from xyz327/v5-dev
FIX:#1173 修复子类使用同名属性覆盖了父类的transient属性导致属性transient检测而被忽略
2020-10-21 12:59:48 +08:00
Looly
a114113be0 fix check bug 2020-10-21 12:58:03 +08:00
xyz327
995bacc253 fix(hutool-core): 修复子类使用同名属性覆盖了父类的transient属性导致属性transient检测而被忽略 2020-10-20 15:27:03 +08:00
Looly
c008d0a081 prepare 5.4.6 2020-10-18 13:38:32 +08:00
Looly
756f9b3f87 release 5.4.5 2020-10-18 13:27:38 +08:00
Looly
d5192d8f61 add method 2020-10-18 13:23:37 +08:00
Looly
0085954326 fix comment 2020-10-18 00:21:04 +08:00
Looly
65552f4f54 add class 2020-10-18 00:12:50 +08:00
Looly
fb46196782 add methods 2020-10-15 18:16:56 +08:00
Golden Looly
72ea16b980
Merge pull request #1166 from freshgeek/v5-dev
[新特性]  完成Assert 断言工具类,函数接口延迟获取错误信息接口
2020-10-15 15:50:08 +08:00
chenc
152ce8b24e 修正提交代码缩进 2020-10-15 14:58:02 +08:00
chenc
a7cd0f8583 isTrue,isFalse,isNull,notNull,notEmpty,notBlank,notContain,notEmpty,noNullElements,notEmpty,notEmpty,state等方法的函数式获取错误信息方法 2020-10-15 14:53:57 +08:00
Looly
97d48dde0b add console.table 2020-10-14 18:09:12 +08:00
Looly
5d60656566 update junit 2020-10-14 17:14:17 +08:00
Looly
8ae81241be aad ListUtil.split 2020-10-14 15:33:02 +08:00
Looly
cc59412909 !194 优化针对list的split方法
Merge pull request !194 from easepan/hotfix/optimize-collutil-split
2020-10-14 15:19:57 +08:00
easepan
8913aeaf33 fix: optimize split for list 2020-10-14 13:16:15 +08:00
Looly
f11a151471 fix doc 2020-10-14 11:43:24 +08:00
Looly
d24ff836b8 enhance countAll 2020-10-14 11:01:29 +08:00
Golden Looly
8c17979082
Merge pull request #1159 from akiyamaneko/combination_enhanced
基于#1153 重新做了优化,剔除了缓存,直接计算即可
2020-10-14 11:00:16 +08:00
Golden Looly
81ac3924d6
Merge pull request #1163 from xiejiamingly/v5-dev
修改了CaseInsensitiveMap的remove等方法并没有忽略大小写的问题
2020-10-14 10:51:31 +08:00
Looly
1873b76017 fix doc 2020-10-14 10:48:42 +08:00
xjm
5478b1d67b 修改了CaseInsensitiveMap的remove等方法并没有忽略大小写的问题 2020-10-13 18:43:36 +08:00
Singu
04485c7d4b add comments to StrUtil
补全部分 Empty 相关方法的注释
2020-10-13 17:10:56 +08:00
Singu
ea4271b3db add comments to StrUtil
补全 Blank 相关方法的注释
2020-10-13 17:06:16 +08:00
Singu
9679d1ffaf add comments to CharUtil
补全常量注释
2020-10-13 17:05:12 +08:00
Singu
a9e1b77b2c add comments to StrUtil
补全常量注释
2020-10-13 17:04:02 +08:00
Singu
43152af8be add comments to StrUtil
补全部分方法的版本号
2020-10-13 17:01:15 +08:00
neko
edf01b772d
Update Combination.java 2020-10-11 16:20:22 +08:00
Looly
3617d0a569 DataSizeUtil support decimal 2020-10-11 14:04:45 +08:00
Golden Looly
8cc5b7ffa4
Merge pull request #1158 from totalo/v5-dev
fixed #1155 修复DataSizeUtil无法处理小数的问题
2020-10-11 13:51:57 +08:00
Looly
03e45bc514 fix NumberUtil 2020-10-11 13:19:17 +08:00
totalo
29b6de444f fixed #1155 2020-10-10 23:23:47 +08:00
totalo
d97db8c2e1 Merge branch 'v5-dev' of https://github.com/totalo/hutool into v5-dev 2020-10-10 23:11:43 +08:00
totalo
20d1e8984b Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2020-10-10 23:04:42 +08:00
totalo
5edaf41cae fixed #1155 2020-10-10 23:04:18 +08:00
Golden Looly
3471061626
Merge pull request #1145 from akiyamaneko/credict-code
简化CreditCode逻辑
2020-10-09 16:49:47 +08:00
Looly
1a74642736 enhance StrUtil 2020-10-09 16:48:12 +08:00
Golden Looly
58aba1ab93
Merge pull request #1144 from akiyamaneko/strutils
优化 StrUtil中部分参数校验以及逻辑处理
2020-10-09 16:42:57 +08:00
Looly
c59acb3bac fix equals 2020-10-09 16:30:19 +08:00
Looly
69362f1031 add default value for ArrayUtil.unwrap 2020-10-09 16:01:25 +08:00
Golden Looly
a82d5b2905
Merge pull request #1150 from akiyamaneko/list_util_enhanecd
修复ListUtil潜在的overflow异常
2020-10-09 15:51:39 +08:00
Looly
308fa0f9db fix date bug 2020-10-09 15:25:21 +08:00
Looly
ecedb5fd82 add method 2020-10-09 10:27:22 +08:00
lixiaohua
ec2669d586 update unit test 2020-10-08 09:36:11 +08:00
lixiaohua
2602935b60 add method 2020-10-08 03:25:17 +08:00
neko
ede632714d
修复潜在的overflow异常 2020-10-03 17:12:09 +08:00
neko
050d3e6eac
简化逻辑 2020-10-02 10:57:55 +08:00
neko
a62f2cd34a
优化StrUtil 2020-09-30 18:18:58 +08:00
Looly
49d5fb471f fix code 2020-09-30 15:37:13 +08:00
SunYu
93877205c5 代码优化 2020-09-30 13:50:13 +08:00
Looly
7c23aadb9e prepare 5.4.5 2020-09-30 12:04:01 +08:00
Looly
7038498add release 5.4.4 2020-09-30 11:42:40 +08:00
Looly
61c0633da7 add readBySax 2020-09-30 11:30:10 +08:00
Looly
f6a18afcba fix test 2020-09-30 10:47:10 +08:00
Looly
17cacc4a03 rename to ConsoleTable 2020-09-30 01:47:48 +08:00
Looly
61439c9138 rename to ConsoleTable 2020-09-30 01:45:27 +08:00
Looly
1c19e612fe rename to ConsoleTable 2020-09-30 01:43:09 +08:00
Looly
a508533f9c fix code 2020-09-29 12:08:19 +08:00
Golden Looly
2619bdd1df
Merge pull request #1137 from akiyamaneko/BOOLEAN_IMPROVED
优化BooleanUtil的校验逻辑
2020-09-29 12:03:14 +08:00
Looly
1c8158dc48 fix color bug 2020-09-29 11:55:18 +08:00
Golden Looly
f3667dd110
Merge pull request #1136 from akiyamaneko/RGB_COLOR
RGB随机颜色的上限值不对且API重复
2020-09-29 11:52:09 +08:00
neko
5d33c34574
Boolean优化字符串转换boolean的逻辑 2020-09-29 11:46:24 +08:00
neko
106aabc245
随机颜色取值范围不正确 2020-09-29 11:12:33 +08:00
neko
699e14acac
随机颜色范围会导致255取不到 2020-09-29 11:07:58 +08:00
Looly
80f85390e4 fix bug 2020-09-28 19:27:57 +08:00
Golden Looly
fb04fb0704
Merge branch 'v5-dev' into factorial_improved 2020-09-28 19:00:19 +08:00
neko
f253ab9269
阶乘优化 2020-09-28 17:13:25 +08:00
Looly
04c918a43d !189 修复控制台打印表格错位bug
Merge pull request !189 from sypro/修复一个Console打印表格的bug
2020-09-28 15:11:43 +08:00
SunYu
7cebc9bf23 修正一个表头错位的bug,并且优化了代码 2020-09-28 15:06:51 +08:00
Golden Looly
d763282047
Merge pull request #1132 from akiyamaneko/patch-4
NumberUtil 增加新功能 isPowerOfTwo 判断整数是否是2的幂
2020-09-28 15:04:09 +08:00
neko
cdee2f32b4
阶乘优化 2020-09-28 14:31:57 +08:00
neko
b06d499279
阶乘计算优化 2020-09-28 14:28:55 +08:00
neko
77cc55a277
新增api补齐单元测试 2020-09-28 14:08:22 +08:00
neko
e59987a334
新增API 2020-09-28 14:02:05 +08:00
Looly
ff10ea0d9c fix numberUtil 2020-09-28 08:44:45 +08:00
Looly
00cd499061 Merge branch 'v5-dev' of github.com:looly/hutool into v5-dev 2020-09-28 08:35:26 +08:00
Looly
e573fa48e7 fix numberUtil 2020-09-28 08:35:05 +08:00
Golden Looly
20bd97e052
Merge pull request #1127 from akiyamaneko/patch-5
优化NumberUtil中针对BigDecimal的一些处理逻辑
2020-09-28 08:34:27 +08:00
neko
31d8b238a3
Update NumberUtil.java 2020-09-27 18:11:42 +08:00
neko
f46a404d9f
优化NumberUtil中针对BigDecimal的一些处理逻辑 2020-09-27 17:57:43 +08:00
neko
43713aab7d
优化NumberUtil中对空值的处理 2020-09-27 17:44:23 +08:00
Looly
d014ccdf0c !187 为Console增加打印表格的方法
Merge pull request !187 from sypro/为Console增加打印表格的方法
2020-09-27 16:18:53 +08:00
hanshuai
c0d5751a8b 常量按照规范应该大写
项目中有的地方大写有的小写,统一部分为大写
2020-09-27 12:41:12 +08:00
hanshuai
73cd33450a equals()规范吧,常量已经写在前面,避免null异常 2020-09-27 11:48:51 +08:00
hanshuai
467865e02c 如果要进行null判断,那直接进行判断null,而不是使用 == 来判断容易引起误解 2020-09-27 11:47:00 +08:00
SunYu
ec0cf6c5db 为Console增加打印表格的功能,为了不污染Console类,先建立一个ConsoleTableUtil,等待路总改造一下。 2020-09-27 09:37:41 +08:00
Looly
73fb1b6735 add method 2020-09-27 09:35:57 +08:00
Looly
e73b2605a4 fix doc 2020-09-26 02:25:48 +08:00
Looly
5b283651b0 add unescape 2020-09-25 18:10:35 +08:00
Golden Looly
4899e03a48
Merge pull request #1121 from totalo/v5-dev
fixed #1118
2020-09-25 17:59:49 +08:00
Looly
83de8ee3a6 add comment 2020-09-25 16:54:00 +08:00
totalo
41797741ef Merge branch 'v5-dev' of https://github.com/totalo/hutool into v5-dev 2020-09-25 15:32:39 +08:00
Singu
5886b558b3 add comments to StrUtil 2020-09-25 13:58:58 +08:00
Looly
74cb1abeeb add method and fix GlobalMailAccount 2020-09-25 11:37:46 +08:00
totalo
0dc720fad3 fixed #1118 2020-09-25 09:55:32 +08:00
Looly
34443c3413 enhance CollUtil 2020-09-23 14:39:59 +08:00
Golden Looly
c7a8aed325
Merge pull request #1110 from nickChenyx/v5-dev
交并集结果集合设置初始化大小,避免扩容成本
2020-09-23 14:38:05 +08:00
Golden Looly
e54e2a770e
Merge pull request #1106 from zhouhailin/v5-dev
FIX #1105 add '@' in CharUtil and StrUtil.
2020-09-23 13:13:18 +08:00
Looly
67aa719b3c fix bug 2020-09-23 12:42:55 +08:00
nickChenyx
9e9405c36e 交并集结果集合设置初始化大小,避免扩容成本 2020-09-23 11:17:29 +08:00
zhouhailin
a24ab39d37 Merge branch 'v5-dev' of https://github.com/looly/hutool into v5-dev 2020-09-22 19:20:02 +08:00
zhouhailin
0f7eb5887b FIX #1105 : add '@' in CharUtil and StrUtil. 2020-09-22 19:12:47 +08:00
Looly
36f7909702 fix code 2020-09-22 17:57:16 +08:00
Looly
46fafeeb86 add method 2020-09-22 09:35:07 +08:00
Golden Looly
d6784ca99e
Merge pull request #1103 from totalo/v5-dev
add months between and hostname util
2020-09-22 08:53:10 +08:00
tangguocheng1
fd3731b87f feat: update test method 2020-09-22 08:35:00 +08:00
tangguocheng1
f822b93326 Merge branch 'v5-dev' of https://github.com/totalo/hutool into v5-dev 2020-09-22 08:28:13 +08:00
totalo
932690df4a add months between and hostname util 2020-09-21 23:01:21 +08:00
Looly
25d82a7d1f change loader 2020-09-19 16:52:15 +08:00
hzd
9c93cb9fed 保持 ServiceLoader.load 默认行为 避免 ClassLoader 不同导致 ServiceConfigurationError 2020-09-18 19:26:03 +08:00
Looly
479c4837c8 prepare 5.4.4 2020-09-18 16:55:15 +08:00
Looly
870ea9a329 release 5.4.3 2020-09-18 15:57:15 +08:00
Looly
836d43a60e fix doc 2020-09-18 15:31:26 +08:00
Looly
5a73a17f4d add ConditionBuilder 2020-09-18 11:27:26 +08:00
Looly
75a6da5b5f add param 2020-09-17 18:15:28 +08:00
Looly
a5f757679e add method 2020-09-17 17:10:42 +08:00
Looly
72a33201eb fix bugs 2020-09-17 16:15:11 +08:00
Looly
85601e2446 fix code 2020-09-17 11:26:14 +08:00
Looly
6b89c841d3 add Calculator 2020-09-17 10:07:50 +08:00
Looly
db7c54bf69 fix bug 2020-09-16 17:47:59 +08:00
Looly
f9f73e4c02 fix log bug 2020-09-16 13:52:26 +08:00
Looly
667dbc2be7 add Intern 2020-09-16 00:45:22 +08:00
Looly
31c211c096 fix test 2020-09-15 22:27:57 +08:00
Looly
37b051a46c add field 2020-09-15 12:54:31 +08:00
Looly
d205225cef fix StrUtil bug 2020-09-15 01:00:26 +08:00
Looly
7d81b20e2b add trans 2020-09-13 11:04:13 +08:00
Looly
ac5728d410 fix url bug 2020-09-13 01:03:23 +08:00
Looly
c0c71a5f8f enhance Console.log 2020-09-11 19:16:33 +08:00
Looly
d23bdd9280 add store method 2020-09-10 18:11:04 +08:00
Looly
76c6aeeb56 fix code 2020-09-10 11:39:20 +08:00
Looly
dfa0191b36 !177 新增一些工具方法
Merge pull request !177 from easepan/feat/init-with-of
2020-09-10 11:10:05 +08:00
easepan
cdbbaf1b20 feat: comparator for chinese pinyin 2020-09-09 19:00:02 +08:00
easepan
9267c8217a feat: comparator for chinese pinyin 2020-09-09 18:50:22 +08:00
easepan
7588535cac feat: new object with 'of' method 2020-09-09 18:42:33 +08:00
easepan
018999e18f feat: new object with 'of' method 2020-09-09 18:32:17 +08:00
Looly
0863461a18 prepare 5.4.3 2020-09-09 17:23:46 +08:00
Looly
1b8e921ab2 fix chinese date bug 2020-09-09 15:00:29 +08:00
Looly
3c8236af95 fix code 2020-09-09 14:40:22 +08:00
Looly
0c3a1ea298 fix bean 2020-09-09 14:23:21 +08:00
easepan
5440cff37f feat: new pair with 'of' method 2020-09-09 11:59:33 +08:00
Looly
5aa10c06ee add DynabeanValueProvider 2020-09-09 00:16:56 +08:00
Looly
a5624e6f94 add method and annotation 2020-09-08 23:54:43 +08:00
Looly
46764f02b8 add methods 2020-09-08 23:41:00 +08:00
Looly
2212ee7705 release 5.4.2 2020-09-08 20:59:52 +08:00
Looly
67f6225e1f ArrayUtil add equals 2020-09-08 16:47:15 +08:00
Looly
fd51eb08b4 fix date size bug 2020-09-08 15:42:29 +08:00
Looly
4d7b795505 fix double equals 2020-09-08 09:46:14 +08:00
hanshuai
53a7b4bf6c 浮点数之间的等值判断,基本数据类型不能用==比较,包装数据类型不能用equals来判断。 2020-09-07 15:35:09 +08:00
hanshuai
df92485ade 应该是常量 2020-09-07 15:03:23 +08:00
Looly
24c9d354e9 fix comment 2020-09-06 02:30:36 +08:00
Looly
784ad3e8f9 fix typeUtil 2020-09-06 02:20:15 +08:00
Looly
3e05c5b396 fix http bug 2020-09-05 20:07:06 +08:00
Looly
cbbf4671ba fix bug 2020-09-05 18:00:25 +08:00
Looly
dba35b9395 add getActualTypeMap 2020-09-04 22:01:32 +08:00
Looly
6a374133c7 add EnumItem and enhance converter 2020-09-04 20:38:14 +08:00
Looly
945a631f2b Merge branch 'v5-dev' of gitee.com:loolly/hutool into v5-dev 2020-09-04 17:51:29 +08:00
Looly
9d8f4d725c fix mac null bug 2020-09-04 17:51:10 +08:00
Looly
10878559fc !173 枚举转换规则拓展
Merge pull request !173 from nierjia_hzd/v5-dev
2020-09-04 17:50:22 +08:00
Looly
2e6515ef06 del util 2020-09-04 15:44:25 +08:00
Golden Looly
5dfd34de3f
Merge pull request #1065 from promise2mm/v5-dev
添加stream操作工具类
2020-09-04 15:13:54 +08:00
一鸣
330b23dfa8 添加stream操作工具类 2020-09-04 14:23:55 +08:00
varyuan
85142b47b8
方法说明错误,"字符"应该改为"字母"
方法说明错误,"字符"应该改为"字母"
2020-09-03 21:02:36 +08:00
hzd
afb8b79636 去掉没用的导包 2020-09-03 16:01:49 +08:00
hzd
1f57bff2c0 添加spi加载自定义转换方法 2020-09-03 15:49:01 +08:00
hzd
80239e2f27 添加枚举转换方式 2020-09-03 15:48:43 +08:00
hzd
0bef8a3233 添加spi工具类返回未list列表 2020-09-03 14:10:48 +08:00
hzd
d9df82ec80 修改泛型 2020-09-03 14:10:16 +08:00
Looly
025728e389 add comment and test 2020-09-01 15:53:16 +08:00
Looly
981bc843e1 fix festival bug 2020-08-31 16:58:05 +08:00
Looly
6d21bb930e fix lock 2020-08-29 17:51:50 +08:00
zhuqianchao
0e9909ffeb 1. 在使用阻塞等待获取锁的方式中,必须在try代码块之外,并且在加锁方法与try代码块之间没有任何可能抛出异常的方法调用,避免加锁成功后,在finally中无法解锁。
说明一:如果在lock方法与try代码块之间的方法调用抛出异常,那么无法解锁,造成其它线程无法成功获取锁。
说明二:如果lock方法在try代码块之内,可能由于其它方法抛出异常,导致在finally代码块中,unlock对未加锁的对象解锁,它会调用AQS的tryRelease方法(取决于具体实现类),抛出IllegalMonitorStateException异常。
说明三:在Lock对象的lock方法实现中可能抛出unchecked异常,产生的后果与说明二相同。 java.concurrent.LockShouldWithTryFinallyRule.rule.desc

2. 补上遗漏的Override注解
2020-08-29 17:22:36 +08:00
Looly
50c30259cb prepare 5.4.2 2020-08-29 15:25:30 +08:00
Looly
3ffffe3d3b release 5.4.1 2020-08-29 15:07:08 +08:00
Looly
09d2591fa3 add stroke method 2020-08-29 14:48:06 +08:00
Looly
dd1f89b555 fix code 2020-08-29 11:57:31 +08:00
Looly
68ad664fec fix test 2020-08-29 11:43:10 +08:00
Looly
32ff87a682 add test 2020-08-28 17:37:58 +08:00
Looly
dd4d8c8c29 add ganzhi 2020-08-28 17:35:26 +08:00
Looly
f0b16223ab Merge branch 'v5-dev' of gitee.com:loolly/hutool into v5-dev 2020-08-28 16:01:27 +08:00
Golden Looly
48d64d3c5d
Merge pull request #1045 from varyuan/patch-1
在此上下文中,表达式 boolean.class == value.getClass() ,永远为false,故删去
2020-08-28 15:57:43 +08:00
dcbai
d7175771c4 添加了返回干支纪年较为全面的信息方法 getCyclicalYMD() 可返回包括年月日的干支纪年信息 2020-08-28 13:24:41 +08:00
Looly
f49c3cba6e fix Velocity bug 2020-08-28 11:32:52 +08:00