How do I turn off error validation for annotations

2019-03-17 10:40发布

I have a developer counterpart who uses Eclipse, which inserts annotations in various positions automatically in our JUnit tests. However, when I open the test in IDEA, the annotation is underlined red, and the annotation reads "@Override is not allowed when implementing interface method". I don't really care about the annotation. It won't let me build because of this, and I need that validation turned off in the IDE or project settings. I've unchecked every single checkbox under Project Settings > Errors for all IDE and project settings, and it still underlines red. I don't want to have to exclude every single annotation individually under the Messages tab. Help! Thanks!

1条回答
在下西门庆
2楼-- · 2019-03-17 11:40

In the Project Structure | Project dialog, change the Project language Level to 6.0 - @Override in interfaces.

查看更多
登录 后发表回答