由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - @Override annotation.
相关主题
请教一个简单的问题eclipse help
泛型问题eclipse hot key
1 quick interview question输入中文导致的死 机
为啥画不出来?请教一个spring的问题
Re: print problem, GUI guru please come in好虫,exploit等大牛请进--关于htmlunit
eclipse question,please helpeclipse 怪问题
今天被问到eclipse plugin倒霉的Swing代码总是导致Exception, fatal error
求解释一下java decoratorstate::update的用法是Java 8吗 (转载)
相关话题的讨论汇总
话题: override话题: int话题: public话题: void话题: eclipse
进入Java版参与讨论
1 (共1页)
i**p
发帖数: 902
1
Eclipse asks me to remove "@Override" for afterTextChanged(),
beforeTextChanged() and onTextChanged(). However, the same code in the
Eclipse working on another working space has no problem.
Does anybody know the reason?
public class myActivity extends Activity implements TextWatcher
{
@Override
public void onCreate(Bundle savedInstanceState) {
...
}
@Override
public void afterTextChanged(Editable msg) {
....
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int
after) {
.......
}

@Override
public void onTextChanged(CharSequence s, int start, int before, int
count) {
.....
}
Z*****Z
发帖数: 723
2
jdk version?

【在 i**p 的大作中提到】
: Eclipse asks me to remove "@Override" for afterTextChanged(),
: beforeTextChanged() and onTextChanged(). However, the same code in the
: Eclipse working on another working space has no problem.
: Does anybody know the reason?
: public class myActivity extends Activity implements TextWatcher
: {
: @Override
: public void onCreate(Bundle savedInstanceState) {
: ...
: }

i**w
发帖数: 883
3
正解,这个annotation在1.6才可以用在interface上

【在 Z*****Z 的大作中提到】
: jdk version?
i**p
发帖数: 902
4
Thank you two! You are right. My Eclipse sets the project to use 1.5 by
default.

【在 i**w 的大作中提到】
: 正解,这个annotation在1.6才可以用在interface上
1 (共1页)
进入Java版参与讨论
相关主题
state::update的用法是Java 8吗 (转载)Re: print problem, GUI guru please come in
线程问题。eclipse question,please help
Design thought.. Sugguestions?今天被问到eclipse plugin
请教个garbage collector问题求解释一下java decorator
请教一个简单的问题eclipse help
泛型问题eclipse hot key
1 quick interview question输入中文导致的死 机
为啥画不出来?请教一个spring的问题
相关话题的讨论汇总
话题: override话题: int话题: public话题: void话题: eclipse