From 7a71c90edb40606b36db2a931754ead6c470e379 Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 22 Sep 2022 16:25:51 +0800 Subject: [PATCH] =?UTF-8?q?AbsCollValueMap=E6=B7=BB=E5=8A=A0removeValue?= =?UTF-8?q?=E5=92=8CremoveValues=E6=96=B9=E6=B3=95=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BA=8Elist=20value=E5=80=BC=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- .../src/test/java/cn/hutool/core/map/CollValueMapTest.java | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b139015..0c6b06d3a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,14 @@ ------------------------------------------------------------------------------------------------------------- -# 5.8.8.M1 (2022-09-21) +# 5.8.8.M1 (2022-09-22) ### 🐣新特性 * 【core 】 StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化(pr#807@Gitee) * 【core 】 增加.wgt格式的MimeType(pr#2617@Github) * 【core 】 EnumUtil.getBy增加带默认值重载(issue#I5RZU6@Gitee) * 【core 】 ModifierUtil和ReflectUtil增加removeFinalModify(pr#810@Gitee) +* 【core 】 AbsCollValueMap添加removeValue和removeValues方法,用于list value值移除(pr#813@Gitee) ### 🐞Bug修复 * 【core 】 修复FileNameUtil.cleanInvalid无法去除换行符问题(issue#I5RMZV@Gitee) diff --git a/hutool-core/src/test/java/cn/hutool/core/map/CollValueMapTest.java b/hutool-core/src/test/java/cn/hutool/core/map/CollValueMapTest.java index fad3bbd04..e193d3e69 100644 --- a/hutool-core/src/test/java/cn/hutool/core/map/CollValueMapTest.java +++ b/hutool-core/src/test/java/cn/hutool/core/map/CollValueMapTest.java @@ -2,7 +2,6 @@ package cn.hutool.core.map; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.ListUtil; -import cn.hutool.core.lang.Console; import cn.hutool.core.map.multi.ListValueMap; import cn.hutool.core.map.multi.SetValueMap; import org.junit.Assert; @@ -11,6 +10,7 @@ import org.junit.Test; import java.util.HashSet; public class CollValueMapTest { + @Test public void testListValueMapRemove() { final ListValueMap entries = new ListValueMap<>(); @@ -25,7 +25,6 @@ public class CollValueMapTest { entries.putValue("three","11"); entries.removeValue("one","22"); - Console.log(entries); Assert.assertEquals(ListUtil.of("11","33","22"), entries.get("one"));