mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-09-13 00:14:56 +00:00
fix: 增大小文本文件检测字符编码的正确率;处理并发隐患
This commit is contained in:
@@ -17,7 +17,7 @@ import java.net.URISyntaxException;
|
||||
public class EncodingTests {
|
||||
@Test
|
||||
void testCharDet() throws URISyntaxException {
|
||||
for (int i = 0; i < 28; i++) {
|
||||
for (int i = 0; i < 29; i++) {
|
||||
File dir = new File(getClass().getClassLoader().getResource("testData\\" + i).toURI());
|
||||
String dirPath = dir.getPath();
|
||||
String textFileName = dir.list()[0];
|
||||
|
||||
Reference in New Issue
Block a user