日食 - 进口项目和Eclipse是给我错了@override方法的注释错误 [英] Eclipse - Imported a project and Eclipse is giving me wrong @override method annotation errors

查看:226
本文介绍了日食 - 进口项目和Eclipse是给我错了@override方法的注释错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进口的Andr​​oid项目,它有很多的方法@Override注解,这是Eclipse的抱怨(虽然该项目已经工作过,它不应该被抱怨)。我使用的Java SDK的1.7。有谁知道这事?谢谢你。

I imported an Android project and it has a lot of @override method annotations, which Eclipse is complaining about (although the project has worked before and it should not be complaining). I'm using java sdk 1.7. Does anyone know anything about this? Thanks.

推荐答案

现就接口方法或超类方法的重写?接口方法只能使用此注释如Java 6的什么是编译器遵从性级别设置为你的项目标?怎么样为Eclipse带来什么影响?如果它不高于1.5,你会看到这样的错误。 Android的正式支持编译器版本1.5和1.6,上次我检查。

Are the overrides on interface methods or superclass methods? Interface methods can only be marked with this annotation as of Java 6. What is the compiler compliance level set to for your project? What about for Eclipse in general? If it is not higher than 1.5, you will see such errors. Android officially supports compiler versions 1.5 and 1.6, last I checked.

(另见那边了解更多详细信息权的几个相关问题)

(Also see the several related questions over there on the right for more details)

这篇关于日食 - 进口项目和Eclipse是给我错了@override方法的注释错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆