Annotation Type NotOwning
-
@Retention(RUNTIME) @Target({METHOD,PARAMETER,FIELD}) public @interface NotOwningAnnotation indicating that ownership should not be transferred to the annotated parameter, field, or method's call sites, for the purposes of Must Call checking. For a full description of the semantics, see the documentation ofOwning.Formal parameters and fields are
NotOwningby default. Method return types are@Owningby default. Constructor results are always@Owning.When the
-AnoLightweightOwnershipcommand-line argument is passed to the checker, this annotation andOwningare ignored.- See the Checker Framework Manual:
- Resource Leak Checker