小编Cha*_*ixy的帖子

我可以将Eclipse设置为忽略"未处理的异常类型"

是否有可能让Eclipse忽略错误"未处理的异常类型"?

在我的具体情况下,原因是我已经检查过该文件是否存在.因此,我认为没有理由加入try catch语句.

file = new File(filePath);
if(file.exists()) {         
    FileInputStream fileStream = openFileInput(filePath);           
    if (fileStream != null) {
Run Code Online (Sandbox Code Playgroud)

或者我错过了什么?

java eclipse compiler-errors unhandled-exception

6
推荐指数
2
解决办法
7990
查看次数