提交 a85f8cb0 authored 作者: 马晨俊's avatar 马晨俊

mcj:修复文件读取不到错误

上级 64c23ba5
......@@ -599,8 +599,12 @@ public class Inspector {
dependencyVo.add(projectPom);
}
fileNum += 1;
List<String> allLines = Files.readAllLines(file);
fileLine += allLines.size();
try {
List<String> allLines = Files.readAllLines(file);
fileLine += allLines.size();
}catch (IOException e){
log.error("当前文件无法读取:{}",e.getMessage());
}
for (Map.Entry<String, PathMatcher> entry : languageSuffixMatcherMapping.entrySet()) {
//通过正则表达式匹配.java类型后缀文件,并+1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论