开发者

Stop eclipse adding the @Overide annotation

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 anno开发者_如何学JAVAtations.


Not sure why you want to disable it but here's how you can do it.

Window > Preferences > Java > Code Style 

and uncheck Add '@Override' annotation for new overriding methods.

Stop eclipse adding the @Overide annotation


In

Java > Editor > Save Actions > Missing Code (Tab)

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜