mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix
This commit is contained in:
parent
551e6fc7b8
commit
1d10e758f4
@ -3,11 +3,12 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.8.3.M1 (2022-05-30)
|
# 5.8.3.M1 (2022-06-08)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【extra 】 mail增加writeTimeout参数支持(issue#2355@Github)
|
* 【extra 】 mail增加writeTimeout参数支持(issue#2355@Github)
|
||||||
* 【core 】 FileTypeUtil增加pptx扩展名支持(issue#I5A0GO@Gitee)
|
* 【core 】 FileTypeUtil增加pptx扩展名支持(issue#I5A0GO@Gitee)
|
||||||
|
* 【core 】 IterUtil.get增加判空(issue#I5B12A@Gitee)
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复NumberUtil.isXXX空判断错误(issue#2356@Github)
|
* 【core 】 修复NumberUtil.isXXX空判断错误(issue#2356@Github)
|
||||||
|
|
||||||
|
@ -553,6 +553,9 @@ public class IterUtil {
|
|||||||
* @since 5.8.0
|
* @since 5.8.0
|
||||||
*/
|
*/
|
||||||
public static <E> E get(final Iterator<E> iterator, int index) throws IndexOutOfBoundsException {
|
public static <E> E get(final Iterator<E> iterator, int index) throws IndexOutOfBoundsException {
|
||||||
|
if(null == iterator){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Assert.isTrue(index >= 0, "[index] must be >= 0");
|
Assert.isTrue(index >= 0, "[index] must be >= 0");
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
index--;
|
index--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user