本文共 702 字,大约阅读时间需要 2 分钟。
转自http://blog.csdn.net/qq_27093465/article/details/69372028
具体报错内容如下:
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 里面添加如下的插件,设置一下的版本就好啦。