博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Intellij IDEA 出现“Usage of API documented as @since 1.6+”的解决办法
阅读量:4228 次
发布时间:2019-05-26

本文共 702 字,大约阅读时间需要 2 分钟。

具体报错内容如下:

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

报错图:

解决方案:

看代码意思是,那个方法是自Java1.6开始的,但是,看我图上面的language level 才是5,级别不够,所以,就报错了。在这个编辑器里面有好 几个地方都有关于这个jdk的版本的设置。

这么改完之后,乍一看好像没问题了,但是,一会问题就又出来啦,还得如下,在maven build 里面添加如下的插件,设置一下的版本就好啦。

[html]   
  1. <build>    
  2.     <plugins>    
  3.         <plugin>    
  4.             <groupId>org.apache.maven.plugins</groupId>    
  5.             <artifactId>maven-compiler-plugin</artifactId>    
  6.             <version>3.6.0</version>    
  7.             <configuration>    
  8.                 <source>1.8</source>    
  9.                 <target>1.8</target>    
  10.             </configuration>    
  11.         </plugin>    
  12.     </plugins>    
  13. </build>    
你可能感兴趣的文章
How to Run Successful Projects in Web Time
查看>>
Sams Teach Yourself SQL Server(TM) 2005 Express in 24 Hours
查看>>
Beginning Apache Struts: From Novice to Professional
查看>>
Expert Spring MVC and Web Flow (Expert)
查看>>
A Developer's Guide to SQL Server 2005
查看>>
Active Directory Cookbook, 2nd Edition
查看>>
Designing and Developing Scalable IP Networks
查看>>
Bluetooth Demystified
查看>>
SWT (Developer's Notebook)
查看>>
Java 2: The Complete Reference, Fifth Edition
查看>>
Java Programming on Linux
查看>>
Microsoft Access VBA Programming for the Absolute Beginner, Second Edition
查看>>
Content Networking: Architecture, Protocols, and Practice
查看>>
Managing Agile Projects
查看>>
Creating a Digital Home Entertainment System with Windows Media Center
查看>>
Java Concurrency in Practice
查看>>
Red Hat Fedora 5 Unleashed
查看>>
AdvancED Flash Interface Design (Advanced Design)
查看>>
Quartz Job Scheduling Framework: Building Open Source Enterprise Applications
查看>>
C++ GUI Programming with Qt 4
查看>>