idea @Override is not allowed when implementing interface method

idea @Override is not allowed when implementing interface method

近期研究idea,在编码过程发现报错:@Override is not allowed when implementing interface method

1、在project/module上,右键选择菜单“Open Module Settings” ;

2、选择Modules,修改“Language Level” 为 “8-Lambdas,......”;

3、选择Project, 修改“Project language level” 为 “SDK default”。

4、保存,重启。

posted @ 2018-02-28 14:17  夕阳下的无名草  阅读(294)  评论(0编辑  收藏  举报