Annotation Type NotOwning


  • @Retention(RUNTIME)
    @Target({METHOD,PARAMETER,FIELD})
    public @interface NotOwning
    Annotation indicating that ownership should not be transferred to the annotated parameter, field, or (when this is written on a method) return type, for the purposes of Must Call checking.

    Parameters and fields are treated as if they have this annotation by default unless they have Owning.

    When the -AnoLightweightOwnership command-line argument is passed to the checker, this annotation and Owning are ignored.