This commit is contained in:
looly
2021-11-30 17:05:57 +08:00
parent 5ba1dde50d
commit cc72350385
4 changed files with 10 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
-------------------------------------------------------------------------------------------------------------
# 5.7.17 (2021-11-29)
# 5.7.17 (2021-11-30)
### 🐣新特性
* 【core 】 增加AsyncUtilpr#457@Gitee
@@ -36,6 +36,7 @@
* 【core 】 修复ZipUtil相对路径父路径获取null问题issue#1961@Github
* 【http 】 修复HttpUtil.normalizeParams未判空导致的问题issue#1975@Github
* 【poi 】 修复读取日期类型的自定义样式单元格时间结果为1899年问题pr#1977@Github
* 【poi 】 修复SoapClient参数未使用问题
-------------------------------------------------------------------------------------------------------------

View File

@@ -1299,14 +1299,14 @@ public class CollUtil {
* @param <E> 集合元素类型
* @param resultCollection 存放移除结果的集合
* @param targetCollection 被操作移除元素的集合
* @param filter 用于是否移除判断的过滤器
* @param predicate 用于是否移除判断的过滤器
*/
public static <T extends Collection<E>, E> T removeWithAddIf(T targetCollection, T resultCollection, Predicate<? super E> filter) {
Objects.requireNonNull(filter);
public static <T extends Collection<E>, E> T removeWithAddIf(T targetCollection, T resultCollection, Predicate<? super E> predicate) {
Objects.requireNonNull(predicate);
final Iterator<E> each = targetCollection.iterator();
while (each.hasNext()) {
E next = each.next();
if (filter.test(next)) {
if (predicate.test(next)) {
resultCollection.add(next);
each.remove();
}

View File

@@ -56,7 +56,8 @@ public class RingIndexUtil {
}
/**
* 通过cas操作 实现对指定值内的回环累加
* 通过cas操作 实现对指定值内的回环累加<br>
* 此方法一般用于大量数据完成回环累加如数据库中的值大于int最大值
*
* @param modulo 回环周期值
* @param atomicLong 原子操作类

View File

@@ -338,7 +338,7 @@ public class SoapClient extends HttpBase<SoapClient> {
*/
public SoapClient setMethod(QName name, Map<String, Object> params, boolean useMethodPrefix) {
setMethod(name);
final String prefix = name.getPrefix();
final String prefix = useMethodPrefix ? name.getPrefix() : null;
final SOAPBodyElement methodEle = this.methodEle;
for (Entry<String, Object> entry : MapUtil.wrap(params)) {
setParam(methodEle, entry.getKey(), entry.getValue(), prefix);
@@ -618,7 +618,7 @@ public class SoapClient extends HttpBase<SoapClient> {
* @param ele 方法节点
* @param name 参数名
* @param value 参数值
* @param prefix 命名空间前缀
* @param prefix 命名空间前缀 {@code null}表示不使用前缀
* @return {@link SOAPElement}子节点
*/
@SuppressWarnings("rawtypes")