IDEA中Java错误:Usage of API documented as @since 1.8+ less...

IDEA出现错误

Usage of API documented as @since 1.8+ less… (⌘F1) This inspection finds all usages of methods that have @since tag in their document….

我以为是JDK版本的问题,但是在External Libraries中也能显示出JDK8的系统jar包。解决办法:

File ->Project Structure->Project Settings -> Modules -> Module名称 -> Sources -> Language Level->可以看到当前并不是8,(这里我的是5.0,1.5之前是以1.3,1.4显示)更改一下选择就行。
图示:
IDEA中Java错误:Usage of API documented as @since 1.8+ less..._第1张图片
IDEA中Java错误:Usage of API documented as @since 1.8+ less..._第2张图片

你可能感兴趣的:(Java)