mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.7.17 (2021-11-29)
|
# 5.7.17 (2021-11-30)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【core 】 增加AsyncUtil(pr#457@Gitee)
|
* 【core 】 增加AsyncUtil(pr#457@Gitee)
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
* 【core 】 修复ZipUtil相对路径父路径获取null问题(issue#1961@Github)
|
* 【core 】 修复ZipUtil相对路径父路径获取null问题(issue#1961@Github)
|
||||||
* 【http 】 修复HttpUtil.normalizeParams未判空导致的问题(issue#1975@Github)
|
* 【http 】 修复HttpUtil.normalizeParams未判空导致的问题(issue#1975@Github)
|
||||||
* 【poi 】 修复读取日期类型的自定义样式单元格时间结果为1899年问题(pr#1977@Github)
|
* 【poi 】 修复读取日期类型的自定义样式单元格时间结果为1899年问题(pr#1977@Github)
|
||||||
|
* 【poi 】 修复SoapClient参数未使用问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -1299,14 +1299,14 @@ public class CollUtil {
|
|||||||
* @param <E> 集合元素类型
|
* @param <E> 集合元素类型
|
||||||
* @param resultCollection 存放移除结果的集合
|
* @param resultCollection 存放移除结果的集合
|
||||||
* @param targetCollection 被操作移除元素的集合
|
* @param targetCollection 被操作移除元素的集合
|
||||||
* @param filter 用于是否移除判断的过滤器
|
* @param predicate 用于是否移除判断的过滤器
|
||||||
*/
|
*/
|
||||||
public static <T extends Collection<E>, E> T removeWithAddIf(T targetCollection, T resultCollection, Predicate<? super E> filter) {
|
public static <T extends Collection<E>, E> T removeWithAddIf(T targetCollection, T resultCollection, Predicate<? super E> predicate) {
|
||||||
Objects.requireNonNull(filter);
|
Objects.requireNonNull(predicate);
|
||||||
final Iterator<E> each = targetCollection.iterator();
|
final Iterator<E> each = targetCollection.iterator();
|
||||||
while (each.hasNext()) {
|
while (each.hasNext()) {
|
||||||
E next = each.next();
|
E next = each.next();
|
||||||
if (filter.test(next)) {
|
if (predicate.test(next)) {
|
||||||
resultCollection.add(next);
|
resultCollection.add(next);
|
||||||
each.remove();
|
each.remove();
|
||||||
}
|
}
|
||||||
|
@@ -56,7 +56,8 @@ public class RingIndexUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过cas操作 实现对指定值内的回环累加
|
* 通过cas操作 实现对指定值内的回环累加<br>
|
||||||
|
* 此方法一般用于大量数据完成回环累加(如数据库中的值大于int最大值)
|
||||||
*
|
*
|
||||||
* @param modulo 回环周期值
|
* @param modulo 回环周期值
|
||||||
* @param atomicLong 原子操作类
|
* @param atomicLong 原子操作类
|
||||||
|
@@ -338,7 +338,7 @@ public class SoapClient extends HttpBase<SoapClient> {
|
|||||||
*/
|
*/
|
||||||
public SoapClient setMethod(QName name, Map<String, Object> params, boolean useMethodPrefix) {
|
public SoapClient setMethod(QName name, Map<String, Object> params, boolean useMethodPrefix) {
|
||||||
setMethod(name);
|
setMethod(name);
|
||||||
final String prefix = name.getPrefix();
|
final String prefix = useMethodPrefix ? name.getPrefix() : null;
|
||||||
final SOAPBodyElement methodEle = this.methodEle;
|
final SOAPBodyElement methodEle = this.methodEle;
|
||||||
for (Entry<String, Object> entry : MapUtil.wrap(params)) {
|
for (Entry<String, Object> entry : MapUtil.wrap(params)) {
|
||||||
setParam(methodEle, entry.getKey(), entry.getValue(), prefix);
|
setParam(methodEle, entry.getKey(), entry.getValue(), prefix);
|
||||||
@@ -618,7 +618,7 @@ public class SoapClient extends HttpBase<SoapClient> {
|
|||||||
* @param ele 方法节点
|
* @param ele 方法节点
|
||||||
* @param name 参数名
|
* @param name 参数名
|
||||||
* @param value 参数值
|
* @param value 参数值
|
||||||
* @param prefix 命名空间前缀
|
* @param prefix 命名空间前缀, {@code null}表示不使用前缀
|
||||||
* @return {@link SOAPElement}子节点
|
* @return {@link SOAPElement}子节点
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
|
Reference in New Issue
Block a user