The method of type must override a superclass method解决方式
导入新的项目,报错:
The method run() of type SortRunThread.Run must override a superclass method
因为:
实现类里面使用了 @Override
在1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface
解决方法:
将项目的jdk从1.5改为1.8
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦