mirror of
https://github.com/houbb/sensitive-word.git
synced 2026-03-22 08:27:36 +08:00
release branch 0.0.1
This commit is contained in:
@@ -26,7 +26,7 @@ public class SensitiveWordData implements IWordData {
|
||||
static {
|
||||
synchronized (SensitiveWordData.class) {
|
||||
long start = System.currentTimeMillis();
|
||||
defaultLines = new ArrayList<>(183837);
|
||||
defaultLines = new ArrayList<>(183836);
|
||||
defaultLines = StreamUtils.readAllLines("/dict.txt");
|
||||
long end = System.currentTimeMillis();
|
||||
System.out.println("Sensitive data loaded!, cost time: " + (end - start) + " ms");
|
||||
|
||||
@@ -16,7 +16,7 @@ public class StreamUtilsTest {
|
||||
final String dictPath = "/dict.txt";
|
||||
|
||||
List<String> stringList = StreamUtils.readAllLines(dictPath);
|
||||
Assert.assertEquals(183837, stringList.size());
|
||||
Assert.assertEquals(183836, stringList.size());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user