diff --git a/pom.xml b/pom.xml index 41daf20..1d4b1f6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.houbb sensitive-word - 0.0.2-SNAPSHOT + 0.0.2 @@ -25,7 +25,7 @@ 1.7 - 0.1.67-SNAPSHOT + 0.1.67 4.12 diff --git a/release.bat b/release.bat index 1fcd753..7993033 100644 --- a/release.bat +++ b/release.bat @@ -10,9 +10,9 @@ ECHO "============================= RELEASE START..." :: 版本号信息(需要手动指定) :::: 旧版本名称 -SET version=0.0.1 +SET version=0.0.2 :::: 新版本名称 -SET newVersion=0.0.2 +SET newVersion=0.0.3 :::: 组织名称 SET groupName=com.github.houbb :::: 项目名称 diff --git a/src/main/java/com/github/houbb/sensitive/word/util/CharsetUtils.java b/src/main/java/com/github/houbb/sensitive/word/util/CharsetUtils.java deleted file mode 100644 index 20ad14f..0000000 --- a/src/main/java/com/github/houbb/sensitive/word/util/CharsetUtils.java +++ /dev/null @@ -1,70 +0,0 @@ -//package com.github.houbb.sensitive.word.util; -// -//import com.github.houbb.heaven.annotation.CommonEager; -//import com.github.houbb.heaven.util.lang.StringUtil; -// -///** -// * @author binbin.hou -// * @since 0.0.1 -// */ -//@CommonEager -//public class CharsetUtils { -// -// /** -// * 是否为中文字符 -// * @param c char -// * @return 是否 -// * @since 0.0.1 -// */ -// public static boolean isChinese(char c) { -// boolean result = false; -// // 汉字范围 \u4e00-\u9fa5 (中文) -// if (c >= 19968 && c <= 171941) { -// result = true; -// } -// return result; -// } -// -// /** -// * 是否包含中文 -// * @param string 字符串 -// * @return 是否 -// * @since 0.0.1 -// */ -// public static boolean isContainsChinese(String string) { -// if(StringUtil.isEmpty(string)) { -// return false; -// } -// -// char[] chars = string.toCharArray(); -// for(char c : chars) { -// if(isChinese(c)) { -// return true; -// } -// } -// -// return false; -// } -// -// /** -// * 是否全是中文 -// * @param string 字符串 -// * @return 是否 -// * @since 0.0.1 -// */ -// public static boolean isAllChinese(String string) { -// if(StringUtil.isEmpty(string)) { -// return false; -// } -// -// char[] chars = string.toCharArray(); -// for(char c : chars) { -// if(!isChinese(c)) { -// return false; -// } -// } -// -// return true; -// } -// -//} diff --git a/src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java b/src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java deleted file mode 100644 index 2d3b624..0000000 --- a/src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java +++ /dev/null @@ -1,72 +0,0 @@ -//package com.github.houbb.sensitive.word.util; -// -//import com.github.houbb.heaven.annotation.CommonEager; -//import com.github.houbb.heaven.constant.CharsetConst; -//import com.github.houbb.heaven.util.lang.StringUtil; -//import com.github.houbb.sensitive.word.exception.SensitiveWordException; -// -//import java.io.BufferedReader; -//import java.io.IOException; -//import java.io.InputStream; -//import java.io.InputStreamReader; -//import java.nio.charset.Charset; -//import java.util.*; -// -///** -// * 流工具类 -// * @author binbin.hou -// * @since 0.0.1 -// */ -//@CommonEager -//public final class StreamUtils { -// -// private StreamUtils(){} -// -// /** -// * 构建数据集合 -// * -// * 后期考虑:是否允许用户自定义字典? -// * 目前不支持这些操作。后期如果需要,再把这些限制放开。 -// * @param path 文件路径 -// * @return 返回数据集合 -// * @since 0.0.1 -// */ -// public static List readAllLines(final String path) { -// return readAllLines(path, CharsetConst.UTF8, true); -// } -// -// /** -// * 构建数据集合 -// * -// * 后期考虑:是否允许用户自定义字典? -// * 目前不支持这些操作。后期如果需要,再把这些限制放开。 -// * @param path 文件路径 -// * @param charset 文件编码 -// * @param ignoreEmpty 是否忽略空白行 -// * @return 返回数据集合 -// * @since 0.0.1 -// */ -// public static List readAllLines(final String path, -// final String charset, -// final boolean ignoreEmpty) { -// try { -// List lines = new ArrayList<>(); -// InputStream is = StreamUtils.class.getResourceAsStream(path); -// BufferedReader e = new BufferedReader(new InputStreamReader(is, -// Charset.forName(charset))); -// -// while (e.ready()) { -// String entry = e.readLine(); -// if (StringUtil.isEmpty(entry) -// && ignoreEmpty) { -// continue; -// } -// lines.add(entry); -// } -// return lines; -// } catch (IOException e) { -// throw new SensitiveWordException("dict init failed!", e); -// } -// } -// -//} diff --git a/src/main/java/com/github/houbb/sensitive/word/util/package-info.java b/src/main/java/com/github/houbb/sensitive/word/util/package-info.java deleted file mode 100644 index 9cfccf7..0000000 --- a/src/main/java/com/github/houbb/sensitive/word/util/package-info.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * 工具类 - * 后期都移动到 heaven 模块。 - * @since 0.0.1 - */ -package com.github.houbb.sensitive.word.util; \ No newline at end of file