![]() ![]() Javadoc tools annotation marks another annotation to restrict what kind of Java elements the annotation can be applied to. (By default, annotations are not included in Javadoc.) For more information, see the RetentionPolicy.RUNTIME – The marked annotation is retained by the JVM so it can be used by the runtime annotation indicates that whenever the specified annotation is used those elements should be documented using the Javadoc tool.RetentionPolicy.CLASS – The marked annotation is retained by the compiler at compile time, but is ignored by the Java Virtual Machine (JVM).RetentionPolicy.SOURCE – The marked annotation is retained only in the source level and is ignored by the compiler.There are several meta-annotation types defined in annotation specifies how the marked annotation is stored: ![]() Annotations That Apply to Other AnnotationsĪnnotations that apply to other annotations are called meta-annotations. When this annotation type is used, unchecked warnings relating to varargs usage are annotation, introduced in Java SE 8, indicates that the type declaration is intended to be a functional interface, as defined by the Java Language Specification. Annotation, when applied to a method or constructor, asserts that the code does not perform potentially unsafe operations on its varargs parameter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |