Annotation Interface EnsuresInitializedFields
@Documented
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR})
@PostconditionAnnotation(qualifier=InitializedFields.class)
@InheritedAnnotation
@Repeatable(List.class)
public @interface EnsuresInitializedFields
A method postcondition annotation indicates which fields the method definitely initializes.
- See the Checker Framework Manual:
- Initialized Fields Checker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
A wrapper annotation that makes theEnsuresInitializedFields
annotation repeatable. -
Required Element Summary
-
Optional Element Summary
-
Element Details
-
fields
Fields that this method initializes.- Returns:
- fields that this method initializes
-
-
-
value
String[] valueThe object whose fields this method initializes.- Returns:
- object whose fields are initialized
- Default:
- {"this"}
-