停止eclipse添加@Overide注解
我正在使用 J2ME Polish,针对 J2ME MIDP 2.1 进行编译并使用 eclipse 作为编辑器。我一直在为我的项目使用 Formatter 和 Code Clean 设置来提高代码质量。没关系,我调整了多少设置都无法让 Eclipse 停止添加“@Override”:
@Override
public void someFunc(String parameters) {
//TODO Auto-generated method stub
}
当我单击“添加未实现的方法”时,如何停止 Eclipse 添加“@Override”?
编辑:我应该让其他人知道 J2ME 没有注释。
I am using J2ME Polish, compiling for J2ME MIDP 2.1 and using eclipse as my editor. I have been playing around with the Formatter and Code Clean settings for my project to improve code quality. Not matter, how many settings I tweak I cannot get eclipse to stop adding "@Override":
@Override
public void someFunc(String parameters) {
//TODO Auto-generated method stub
}
How can I stop eclipse adding "@Override" when I click add un-implemented methods?
Edit: I should let others know that J2ME has no annotations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定为什么要禁用它,但以下是如何做到这一点。
并取消选中为新的覆盖方法添加“@Override”注释。
Not sure why you want to disable it but here's how you can do it.
and uncheck Add '@Override' annotation for new overriding methods.
在
您可以告诉java不要添加@Override注释(仅当您保存文件时缺少注释时),我不确定何时添加未实现的方法。我不得不问为什么你会想要这个,
@Override
仅添加额外的有用信息。In
You can tell java not to add the
@Override
annotation (this is only if it is missing when you save a file), I'm not sure about when adding unimplemented methods. I would have to ask why you would want this,@Override
only adds extra useful information.