美文网首页
“Usage of API documented as @sin

“Usage of API documented as @sin

作者: 王金松 | 来源:发表于2019-04-17 14:33 被阅读0次

在使用jdk1.8IntStream的时候报

Usage of API documented as @since 1.8+ 
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.

Maven项目每个Module都有单独的pom.xml,如果不在pom.xml中进行配置,则默认将Module的Language Level设置为5。所以要在pom.xml文件中添加插件进行配置。

<plugin>      
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
   <version>3.6.0</version>
   <configuration>
      <source>1.8</source>
      <target>1.8</target>
   </configuration>
</plugin>

相关文章

网友评论

      本文标题:“Usage of API documented as @sin

      本文链接:https://www.haomeiwen.com/subject/dthnwqtx.html