Browse Source

add method

Looly 5 years ago
parent
commit
232c292dfc
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      hutool-core/src/main/java/cn/hutool/core/util/StrUtil.java

+ 1 - 0
CHANGELOG.md

@@ -7,6 +7,7 @@
 
 ### 新特性
 * 【socket】     对NioServer和NioClient改造(pr#992@Github)
+* 【core  】     StrUtil增加filter方法(pr#149@Gitee)
 
 ### Bug修复#
 

+ 1 - 1
hutool-core/src/main/java/cn/hutool/core/util/StrUtil.java

@@ -1333,7 +1333,7 @@ public class StrUtil {
 	 * @return 清理后的字符串
 	 */
 	public static String cleanBlank(CharSequence str) {
-		return filter(str, c -> !CharUtil.isBlankChar(c));
+		return filter(str, c -> false == CharUtil.isBlankChar(c));
 	}
 
 	// ------------------------------------------------------------------------------ Split