好吧,标题是不言自明的.我在编译一个有很多行评论的项目时想知道这一点.这有点傻,因为jar文件不会增加太多(一些字节),但我很好奇这是否会影响一个包含大量代码和注释的程序.
谢谢
我如何inputStream.close()从pom.xml或Java代码中的jacoco代码覆盖率中排除?
public void run() {
InputStream inputStream = null;
try {
inputStream = fileSystem.newFileInputStream(file);
}
finally {
if(inputStream != null) {
try {
inputStream.close();
} catch (IOException e) {}
}
}
}
Run Code Online (Sandbox Code Playgroud)