intellij idea不执行空检查

cgfeq70w  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(244)

我使用java.sql.resultset从表的列中检索信息:

res.setGatheringInfo(resultSet.getString("MEETUPTIME"));

然后我尝试访问此字段:

if (res.getGatheringInfo().equals("CHECK")) {
}

为什么idea不检查res.getgatheringinfo()中可能的空值,并且默认情况下不警告我?为此,我必须在res.gatheringinfo上设置@nullable。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题