出现如图错误:
报错信息:
Usage of API documented as @since 1.8+ less… (Ctrl+F1)
This inspection finds all usages of methods that have @since tag in their documentation. This may be useful when development is performed under newer SDK version as the target platform for production
出现场景
IDEA 编译中出现
原因:jdk版本跟编译使用版本不一致导致
解决方案:
project 的pom文件中添加
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>