|
Re: List of annotation supported by Juno like @NonNull [message #897309 is a reply to message #897128] |
Mon, 23 July 2012 14:39 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 22.07.2012 09:49, Javin Paul wrote:
> Hi Guys,
>
> Does anyone has quick list of annotation supported by Eclipse Juno for
> debugging and code quality purpose, I think @NonNull is one of them.
We have three kinds of annotations along with default that we ship in
Eclipse. Those defaults can be changed in case you already use other
similar annotations in your code.
* *'**Nullable*: A fully qualified name of a Java annotation type
(*org.eclipse.jdt.annotation.Nullable* by default), which when
applied to a type in a method signature or variable declaration,
will be interpreted as a specification that null is a legal value in
that position.
Currently supported positions are: method parameters, method return
type and local variables.
* *'NonNull'*: A fully qualified name of a Java annotation type
(*org.eclipse.jdt.annotation.NonNull* by default), which when
applied to a type in a method signature or variable declaration,
will be interpreted as a specification that null is *not* a legal
value in that position.
Currently supported positions are: method parameters, method return
type and local variables.
* *'NonNullByDefault'*: A fully qualified name of a Java annotation
type (*org.eclipse.jdt.annotation.NonNullByDefault* by default).
When applied to an element without an annotation argument, all
unannotated types in method signatures within the annotated element
will be treated as if they were specified with the non-null annotation.
On the contrary, when the annotation is applied with the constant
'false' as its argument, all corresponding defaults at outer scopes
will be canceled for the annotated element.
Dani
>
> Javin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07762 seconds