Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Customize extract methods(Can I have default annotation when doing extract method?)
Customize extract methods [message #903298] Thu, 23 August 2012 01:01 Go to next message
Carfield Yim is currently offline Carfield YimFriend
Messages: 30
Registered: July 2009
HI, I would like to add "@ParametersAreNonnullByDefault" annotation every time when using the extract method refactoring?
Re: Customize extract methods [message #903749 is a reply to message #903298] Sat, 25 August 2012 12:08 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1828
Registered: July 2009
Senior Member
How should the refactoring know? Other users do not want this, so always adding it would be wrong.

The annotation "@ParametersAreNonnullByDefault" is not known to the JDT.
The set of annotations understood by JDT (since Juno, see [1]) includes
@NonNullByDefault, which can be applied to packages, classes/interfaces and methods.
In this case there's no need to add the annotation to each individual method.


Previous Topic:Importing Java Web EE Netbeans Project to Eclipse
Next Topic:LTK refactoring tutorial
Goto Forum:

Current Time: Mon Nov 23 17:15:06 GMT 2020

Powered by FUDForum. Page generated in 0.02269 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top