Annotation Types Summary |
Contract |
Specifies some aspects of the method behavior depending on the arguments. |
Nls |
Specifies that an element of the program is a user-visible string which needs to be localized,
or does not contain such strings. |
NonNls |
Specifies that an element of the program is not a user-visible string which needs to be localized,
or does not contain such strings. |
NotNull |
An element annotated with NotNull claims null value is forbidden
to return (for methods), pass to (parameters) and hold (local variables and fields). |
Nullable |
An element annotated with Nullable claims null value is perfectly valid
to return (for methods), pass to (parameters) and hold (local variables and fields). |
PropertyKey |
Specifies that a method parameter accepts arguments which must be valid property
keys in a specific resource bundle. |
TestOnly |
A method/constructor annotated with TestOnly claims that it should be called from testing code only. |