出現如圖錯誤:
報錯信息:
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>