为什么以下代码的 findbugs 中出现标题错误。
boolean isCreated = folder.mkdirs();
if (!isCreated) {
throw new IOException("Folder already exists..!!!");
}
最佳答案
Method ignores exceptional return value
Method returns a value that is not checked. The return value should be checked since it can indicate an unusual or unexpected function execution.
关于java - 方法忽略异常返回值: FindBugs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23631922/